Radish alpha
r
rad:zwTxygwuz5LDGBq255RA2CbNGrz8
Radicle CI broker
Radicle
Git
feat: make sensitive_env optional in the configuration file
Merged liw opened 1 year ago

Signed-off-by: Lars Wirzenius liw@liw.fi

1 file changed +2 -0 f3b83c30 1e1587e8
modified src/config.rs
@@ -80,6 +80,7 @@ impl fmt::Debug for Adapter {
pub struct Adapter {
    pub command: PathBuf,
    pub env: HashMap<String, String>,
+
    #[serde(default)]
    pub sensitive_env: HashMap<String, Sensitive>,
}

@@ -87,6 +88,7 @@ impl Adapter {
    pub fn envs(&self) -> &HashMap<String, String> {
        &self.env
    }
+

    pub fn sensitive_envs(&self) -> &HashMap<String, Sensitive> {
        &self.sensitive_env
    }