1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-15 09:44:22 +00:00
starship/src/configs/pulumi.rs

26 lines
609 B
Rust
Raw Normal View History

2021-10-05 23:27:25 +00:00
use crate::config::ModuleConfig;
use serde::Serialize;
use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct PulumiConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
}
impl<'a> Default for PulumiConfig<'a> {
fn default() -> Self {
PulumiConfig {
format: "via [$symbol($username@)$stack]($style) ",
2021-10-05 23:27:25 +00:00
version_format: "v${raw}",
symbol: "",
style: "bold 5",
disabled: false,
}
}
}