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

source

pub struct Command

View or modify configuration.

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 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

source

enum Sub

The 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.