set

gest artifact meta set: set a metadata value on an artifact at a dot-delimited path.

struct Command

source

pub struct Command

Set a metadata value on an artifact at a dot-delimited path.

Field Type Description
id String The artifact ID or prefix.
path String The dot-delimited metadata path.
value String The metadata value (auto-detected scalar unless –as-json is set).
as_json bool Parse the value as a JSON literal instead of auto-detecting.
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>

Write the parsed value into the artifact’s metadata at the given dot-path within a recorded transaction.

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.