meta

task meta subcommand tree for reading and writing task metadata.

With no subcommand the command renders the full metadata blob for a task; the get/set/unset subcommands operate on individual dot-delimited paths.

Name Summary
get gest task meta get: get a metadata value from a task by dot-delimited path.
set gest task meta set: set a metadata value on a task at a dot-delimited path.
unset gest task meta unset: remove a metadata value from a task at a dot-delimited path.

struct Command

source

pub struct Command

Read or write task metadata fields.

Field Type Description
id Option<String> The task ID or prefix (used when no subcommand is given).
subcommand Option<Sub> The subcommand to run; with none, the command shows all the metadata of id.
output json::Flags The output mode: normal, --json, --quiet or --raw.

Implements FromArgMatches, Args, Debug.

Command::call

source

pub async fn call(&self, context: &AppContext) -> Result<(), Error>

Dispatch to the matched task meta subcommand, or show all the metadata of id.

Parameter Type Description
context &AppContext the application context: settings, store and current project
returns Result<(), Error> The result of the subcommand; with none, the result of showing the metadata, or Error::Argument when id is missing.

enum Sub

source

enum Sub

The subcommands of gest task meta, one variant for each.

Variant Description
Get(get::Command) Get a metadata value by dot-delimited path.
Set(set::Command) Set a metadata value at a dot-delimited path.
Unset(unset::Command) Remove a metadata value at a dot-delimited path.

Implements Debug, FromArgMatches, Subcommand.