mirror of
https://github.com/starship/starship.git
synced 2026-06-24 02:01:36 +07:00
feat: allow printing config file schema (#3737)
This commit is contained in:
@@ -78,8 +78,12 @@ pub mod zig;
|
||||
pub use starship_root::*;
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Default)]
|
||||
#[cfg_attr(feature = "config-schema", derive(schemars::JsonSchema))]
|
||||
#[serde(default)]
|
||||
pub struct FullConfig<'a> {
|
||||
// Meta
|
||||
#[serde(rename = "$schema")]
|
||||
schema: String,
|
||||
// Root config
|
||||
#[serde(flatten)]
|
||||
root: StarshipRootConfig,
|
||||
|
||||
Reference in New Issue
Block a user