mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-16 10:05:13 +00:00
527ffbaede
* fix(dotnet): update dotnet format string * fix(dotnet): update erlang format string * fix(dotnet): update golang format string * fix(dotnet): update helm format string * fix(dotnet): update julia format string * fix(dotnet): update nim format string * fix(dotnet): update ruby format string * fix(dotnet): update rust format string * test: update formatted strings in unit tests * Use suggested format strings Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com> Co-authored-by: Moritz Vetter <mv@3yourmind.com> Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
25 lines
617 B
Rust
25 lines
617 B
Rust
use crate::config::{ModuleConfig, RootModuleConfig};
|
|
|
|
use starship_module_config_derive::ModuleConfig;
|
|
|
|
#[derive(Clone, ModuleConfig)]
|
|
pub struct DotnetConfig<'a> {
|
|
pub format: &'a str,
|
|
pub symbol: &'a str,
|
|
pub style: &'a str,
|
|
pub heuristic: bool,
|
|
pub disabled: bool,
|
|
}
|
|
|
|
impl<'a> RootModuleConfig<'a> for DotnetConfig<'a> {
|
|
fn new() -> Self {
|
|
DotnetConfig {
|
|
format: "[$symbol($version )(🎯 $tfm )]($style)",
|
|
symbol: "•NET ",
|
|
style: "blue bold",
|
|
heuristic: true,
|
|
disabled: false,
|
|
}
|
|
}
|
|
}
|