mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
6122516887
--------- Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
27 lines
573 B
Rust
27 lines
573 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Deserialize, Serialize)]
|
|
#[cfg_attr(
|
|
feature = "config-schema",
|
|
derive(schemars::JsonSchema),
|
|
schemars(deny_unknown_fields)
|
|
)]
|
|
#[serde(default)]
|
|
pub struct VcshConfig<'a> {
|
|
pub symbol: &'a str,
|
|
pub style: &'a str,
|
|
pub format: &'a str,
|
|
pub disabled: bool,
|
|
}
|
|
|
|
impl Default for VcshConfig<'_> {
|
|
fn default() -> Self {
|
|
Self {
|
|
symbol: "",
|
|
style: "bold yellow",
|
|
format: "vcsh [$symbol$repo]($style) ",
|
|
disabled: false,
|
|
}
|
|
}
|
|
}
|