function command( repl ) {
	return onCommand;

	/**
	* Reads a value from a specified workspace.
	*
	* @private
	* @param {string} workspace - workspace name
	* @param {(string|symbol)} variable - variable name
	* @returns {*} assigned value
	*/
	function onCommand( workspace, variable ) {
		var list;
		var desc;
		var err;
		var i;
		if ( !isString( workspace ) ) {
			err = new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', workspace ) );
			debug( 'Error: %s', err.message );
			repl._ostream.write( 'Error: '+err.message+'\n' );
			return;
		}
		if ( workspace === repl._currentWorkspace ) {
			return repl._context[ variable ];
		}
		if ( !hasOwnProp( repl._workspaces, workspace ) ) {
			err = new Error( format( 'invalid argument. Unrecognized workspace name. Value: `%s`.', workspace ) );
			debug( 'Error: %s', err.message );
			repl._ostream.write( 'Error: '+err.message+'\n' );
			return;
		}
		list = repl._workspaces[ workspace ];
		for ( i = 0; i < list.length; i += 2 ) {
			if ( list[ i ] === variable ) {
				desc = list[ i+1 ];

				// Check if descriptor is an accessor descriptor:
				if ( hasOwnProp( desc, 'get' ) ) {
					// WARNING: the `this` context is not defined, as the variable is not actually bound to a global instance!
					return desc.get.call( null );
				}
				// Check if the descriptor is a data descriptor:
				if ( hasOwnProp( desc, 'value' ) ) {
					return desc.value;
				}
				// Variable must be write-only:
				err = new Error( format( 'invalid operation. Cannot read from write-only variable `%s`.', variable ) );
				debug( 'Error: %s', err.message );
				repl._ostream.write( 'Error: '+err.message+'\n' );
				return;
			}
		}
	}
}
Returns a callback to be invoked upon calling the `assignfrom` command.

@private
@param {REPL} repl - REPL instance
@returns {Function} callback