meta

Subcommands for reading and writing iteration metadata.
Name Summary
get gest iteration meta get: get a metadata value from an iteration by dot-delimited path.
set gest iteration meta set: set a metadata value on an iteration at a dot-delimited path.
unset gest iteration meta unset: remove a metadata value from an iteration at a dot-delimited path.

struct Command

source

pub struct Command

Read or write iteration metadata fields.

Field Type Description
id Option<String> The iteration 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 iteration 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 iteration 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.