artifact

gest artifact subcommand tree for creating, listing, and managing artifacts.
Name Summary
archive gest artifact archive: archive an artifact.
create gest artifact create: create a new artifact.
delete gest artifact delete: delete an artifact and all of its dependent rows.
list gest artifact list: list artifacts in the current project.
meta Subcommands for reading and writing artifact metadata.
note Subcommands for managing notes attached to artifacts.
show gest artifact show: show an artifact by ID or prefix.
tag gest artifact tag: add a tag to an artifact.
untag gest artifact untag: remove a tag from an artifact.
update gest artifact update: update an artifact.

struct Command

source

pub struct Command

Manage artifacts.

Field Type Description
subcommand Sub The subcommand to run.

Implements FromArgMatches, Args, Debug.

Command::call

source

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

Dispatch to the matched artifact subcommand.

Parameter Type Description
context &AppContext the application context: settings, store and current project
returns Result<(), Error> The result of the subcommand that ran.

enum Sub

source

enum Sub

The subcommands of gest artifact, one variant for each.

Variant Description
Archive(archive::Command) Archive an artifact.
Create(create::Command) Create a new artifact.
Delete(delete::Command) Delete an artifact and its dependent rows.
List(list::Command) List artifacts.
Meta(meta::Command) Get or set custom metadata.
Note(note::Command) Manage notes on an artifact.
Show(show::Command) Show an artifact.
Tag(tag::Command) Add a tag to an artifact.
Untag(untag::Command) Remove a tag from an artifact.
Update(update::Command) Update an artifact.

Implements Debug, FromArgMatches, Subcommand.