pub async fn print_bash(svc: &str, conf: &Config, reg: &Region, mock: bool) -> Result<()> {
    let mf = if mock {
        warn!("Using mocked values for secrets. Use `-s` to resolve secrets.");
        shipcat_filebacked::load_manifest(&svc, &conf, &reg)
            .await?
            .stub(&reg)
            .await?
    } else {
        shipcat_filebacked::load_manifest(&svc, &conf, &reg)
            .await?
            .complete(&reg)
            .await?
    };

    for (k, s) in mf.secrets {
        println!("export {}={}", k, s);
    }
    for (k, v) in mf.env.plain {
        println!("export {}={}", k, v);
    }
    Ok(())
}
/// Print exports to source from a shell
Print exports to source from a shell
Print exports to source from a shell
pub async fn print_bash(svc: &str, conf: &Config, reg: &Region, mock: bool) -> Result<()> {
    let mf = if mock {
        warn!("Using mocked values for secrets. Use `-s` to resolve secrets.");
        shipcat_filebacked::load_manifest(&svc, &conf, &reg)
            .await?
            .stub(&reg)
            .await?
    } else {
        shipcat_filebacked::load_manifest(&svc, &conf, &reg)
            .await?
            .complete(&reg)
            .await?
    };
    for (k, s) in mf.secrets {
        println!("export {}={}", k, s);
    }
    for (k, v) in mf.env.plain {
        println!("export {}={}", k, v);
    }
    Ok(())
}
pub async fn print_bash ( svc : & str , conf : & Config , reg : & Region , mock : bool ) -> Result < ( ) > { let mf = if mock { warn ! ( " " ) ; shipcat_filebacked :: load_manifest ( & svc , & conf , & reg ) . await ? . stub ( & reg ) . await ? } else { shipcat_filebacked :: load_manifest ( & svc , & conf , & reg ) . await ? . complete ( & reg ) . await ? } ; for ( k , s ) in mf . secrets { println ! ( " " k s ) ; } for ( k , v ) in mf . env . plain { println ! ( " " k v ) ; } Ok ( ( ) ) }
Print exports to source from a shell
Print exports to source from a shell
svc
&str
conf
&Config
reg
&Region
mock
bool
svc
&str
conf
&Config
reg
&Region
mock
bool