config
gest config subcommand tree for viewing and modifying settings.| Name | Summary |
|---|---|
get |
gest config get: get a configuration value by dotted key path. |
set |
gest config set: set a configuration value. |
show |
gest config show: show the current configuration. |
struct Command
pub struct CommandView or modify configuration.
| 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 config 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 config, one variant for each.
| Variant | Description |
|---|---|
Get(get::Command) |
Get a configuration value. |
Set(set::Command) |
Set a configuration value. |
Show(show::Command) |
Show the current configuration. |
Implements Debug, FromArgMatches, Subcommand.