generate

gest generate subcommand tree for emitting shell completions and man pages.
Name Summary
completions gest generate completions: generate shell completions.
man_pages gest generate man-pages: generate man pages.

struct Command

source

pub struct Command

Generate shell completions and man pages.

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 generate 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 generate, one variant for each.

Variant Description
Completions(completions::Command) Generate shell completions.
ManPages(man_pages::Command) Generate man pages.

Implements Debug, FromArgMatches, Subcommand.