pub fn vault_secrets(&mut self) -> BTreeSet<String> {
        let mut plain = BTreeMap::new();
        let mut vs = BTreeSet::new();
        for (k, v) in self.plain.iter() {
            if EnvVars::is_vault_secret(&v) {
                vs.insert(k.to_string());
                self.secrets.insert(k.to_string());
            } else {
                plain.insert(k.to_string(), v.to_string());
            }
        }
        self.plain = plain;
        vs
    }
// Remove variables with a value "IN_VAULT", mark them as a secret and return them.
Remove variables with a value "IN_VAULT", mark them as a secret and return them.
Remove variables with a value " IN_VAULT " mark them as a secret and return them .
pub fn vault_secrets(&mut self) -> BTreeSet<String> {
        let mut plain = BTreeMap::new();
        let mut vs = BTreeSet::new();
        for (k, v) in self.plain.iter() {
            if EnvVars::is_vault_secret(&v) {
                vs.insert(k.to_string());
                self.secrets.insert(k.to_string());
            } else {
                plain.insert(k.to_string(), v.to_string());
            }
        }
        self.plain = plain;
        vs
    }
pub fn vault_secrets ( & mut self ) -> BTreeSet < String > { let mut plain = BTreeMap :: new ( ) ; let mut vs = BTreeSet :: new ( ) ; for ( k , v ) in self . plain . iter ( ) { if EnvVars :: is_vault_secret ( & v ) { vs . insert ( k . to_string ( ) ) ; self . secrets . insert ( k . to_string ( ) ) ; } else { plain . insert ( k . to_string ( ) , v . to_string ( ) ) ; } } self . plain = plain ; vs }
Remove variables with a value "IN_VAULT", mark them as a secret and return them.
Remove variables with a value " IN_VAULT " mark them as a secret and return them .
&mut self
&mut self