get

gest task meta get: get a metadata value from a task by dot-delimited path.

struct Command

source

pub struct Command

Get a metadata value from a task by dot-delimited path.

Field Type Description
id String The task ID or prefix.
path String The dot-delimited metadata path.
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>

Resolve the task and print the metadata value at the given dot-path.

Parameter Type Description
context &AppContext the application context: settings, store and current project
returns Result<(), Error> Ok(()) when the command succeeds, or the error that stopped it.