diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-11 10:15:55 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-11 10:15:55 +0900 |
| commit | 3f80f3acd90c9782420cc0d33fcf77035e522b15 (patch) | |
| tree | 028e62e45529431be846713156d93d5a208480c7 /crates/mozart/src/commands/config.rs | |
| parent | 8441abd29aea53719c19f34ec6d542a4575a23c9 (diff) | |
| download | php-mozart-3f80f3acd90c9782420cc0d33fcf77035e522b15.tar.gz php-mozart-3f80f3acd90c9782420cc0d33fcf77035e522b15.tar.zst php-mozart-3f80f3acd90c9782420cc0d33fcf77035e522b15.zip | |
enable workspace
Diffstat (limited to 'crates/mozart/src/commands/config.rs')
| -rw-r--r-- | crates/mozart/src/commands/config.rs | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/crates/mozart/src/commands/config.rs b/crates/mozart/src/commands/config.rs new file mode 100644 index 0000000..4434840 --- /dev/null +++ b/crates/mozart/src/commands/config.rs @@ -0,0 +1,58 @@ +use clap::Args; + +#[derive(Args)] +pub struct ConfigArgs { + /// Setting key + pub setting_key: Option<String>, + + /// Setting value(s) + pub setting_value: Vec<String>, + + /// Apply to the global config file + #[arg(short, long)] + pub global: bool, + + /// Open the config file in an editor + #[arg(short, long)] + pub editor: bool, + + /// Affect auth config file + #[arg(short, long)] + pub auth: bool, + + /// Unset the given setting key + #[arg(long)] + pub unset: bool, + + /// List the current configuration variables + #[arg(short, long)] + pub list: bool, + + /// Use a specific config file + #[arg(short, long)] + pub file: Option<String>, + + /// Returns absolute paths when fetching *-dir config values + #[arg(long)] + pub absolute: bool, + + /// JSON decode the setting value + #[arg(short, long)] + pub json: bool, + + /// Merge the setting value with the current value + #[arg(short, long)] + pub merge: bool, + + /// Append to existing array values + #[arg(long)] + pub append: bool, + + /// Display the origin of a config setting + #[arg(long)] + pub source: bool, +} + +pub fn execute(_args: &ConfigArgs) { + todo!() +} |
