mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-15 09:44:22 +00:00
eb203ebe95
* add disabled option for fill module * update tests * update docs
22 lines
443 B
Rust
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,
|
|
}
|
|
}
|
|
}
|