mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-09-26 20:29:03 +00:00
568d057032
* feat: add username to Pulumi module * run dprint fmt
26 lines
609 B
Rust
26 lines
609 B
Rust
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) ",
|
|
version_format: "v${raw}",
|
|
symbol: " ",
|
|
style: "bold 5",
|
|
disabled: false,
|
|
}
|
|
}
|
|
}
|