mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-06-16 23:32:22 +00:00
b0853876ea
* fix(print-config): fix battery and vcsh module handling * sort, add test, add line_break module
24 lines
520 B
Rust
24 lines
520 B
Rust
use crate::config::ModuleConfig;
|
|
|
|
use serde::Serialize;
|
|
use starship_module_config_derive::ModuleConfig;
|
|
|
|
#[derive(Clone, ModuleConfig, Serialize)]
|
|
pub struct VcshConfig<'a> {
|
|
pub symbol: &'a str,
|
|
pub style: &'a str,
|
|
pub format: &'a str,
|
|
pub disabled: bool,
|
|
}
|
|
|
|
impl<'a> Default for VcshConfig<'a> {
|
|
fn default() -> Self {
|
|
VcshConfig {
|
|
symbol: "",
|
|
style: "bold yellow",
|
|
format: "vcsh [$symbol$repo]($style) ",
|
|
disabled: false,
|
|
}
|
|
}
|
|
}
|