1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-06-16 23:32:22 +00:00
starship/src/configs/fill.rs
Aman Kumar Sinha eb203ebe95
feat(fill): add disabled option for fill module (#3158)
* add disabled option for fill module

* update tests

* update docs
2021-10-21 14:27:32 +02:00

22 lines
443 B
Rust

use crate::config::ModuleConfig;
use serde::Serialize;
use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct FillConfig<'a> {
pub style: &'a str,
pub symbol: &'a str,
pub disabled: bool,
}
impl<'a> Default for FillConfig<'a> {
fn default() -> Self {
FillConfig {
style: "bold black",
symbol: ".",
disabled: false,
}
}
}