diff options
Diffstat (limited to 'src/configs/pulumi.rs')
-rw-r--r-- | src/configs/pulumi.rs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/configs/pulumi.rs b/src/configs/pulumi.rs new file mode 100644 index 000000000..5a796dd79 --- /dev/null +++ b/src/configs/pulumi.rs @@ -0,0 +1,25 @@ +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$stack]($style) ", + version_format: "v${raw}", + symbol: " ", + style: "bold 5", + disabled: false, + } + } +} |