mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
feat: allow printing config file schema (#3737)
This commit is contained in:
@@ -97,6 +97,9 @@ enum Commands {
|
||||
#[clap(default_value = "disabled")]
|
||||
value: String,
|
||||
},
|
||||
#[cfg(feature = "config-schema")]
|
||||
/// Generate a schema for the starship configuration as JSON-schema
|
||||
ConfigSchema,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
@@ -216,6 +219,8 @@ fn main() {
|
||||
.map(char::from)
|
||||
.collect::<String>()
|
||||
),
|
||||
#[cfg(feature = "config-schema")]
|
||||
Commands::ConfigSchema => print::print_schema(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user