diff options
author | Mike Sampson <mike@sambodata.com> | 2019-12-21 04:30:47 +1100 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-12-20 12:30:47 -0500 |
commit | 256a2be949288b6c0d9f5d02b09d78b245c992d1 (patch) | |
tree | 3989ca58395fe1a9a915aeec7bc6ec041cc676ef /src/configs/aws.rs | |
parent | f3784f5aaa08281bd36c0891c6b29673c93ef929 (diff) |
feat: Implement AWS region aliases (#646)
Diffstat (limited to 'src/configs/aws.rs')
-rw-r--r-- | src/configs/aws.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/configs/aws.rs b/src/configs/aws.rs index 54dca3055..228558a24 100644 --- a/src/configs/aws.rs +++ b/src/configs/aws.rs @@ -1,4 +1,5 @@ use crate::config::{ModuleConfig, RootModuleConfig, SegmentConfig}; +use std::collections::HashMap; use ansi_term::{Color, Style}; use starship_module_config_derive::ModuleConfig; @@ -18,6 +19,7 @@ pub struct AwsConfig<'a> { pub style: Style, pub disabled: bool, pub displayed_items: AwsItems, + pub region_aliases: HashMap<String, &'a str>, } impl<'a> RootModuleConfig<'a> for AwsConfig<'a> { @@ -29,6 +31,7 @@ impl<'a> RootModuleConfig<'a> for AwsConfig<'a> { style: Color::Yellow.bold(), disabled: false, displayed_items: AwsItems::All, + region_aliases: HashMap::new(), } } } |