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
pub struct CommandGenerate shell completions and man pages.
| Field | Type | Description |
|---|---|---|
subcommand |
Sub | The subcommand to run. |
Implements FromArgMatches, Args, Debug.
Command::call
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
enum SubThe 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.