#![allow(dead_code)]
use std::ffi::OsString;
use bash_interop::rig::{Failure, Layout, Provision};
fn environment<E: FnOnce(&Layout) -> Result<Vec<(OsString, OsString)>, Failure>>(_: E) {}
fn deploy_join(at: &Layout) -> String {
format!(
"BC_JOIN DEPLOY {}\n",
bash_strings::emit_scalar(at.text())
)
}
fn the_three_usual_sentences() {
environment(
|at| {
Ok(vec![at.bash_env(
Provision::Joining(&deploy_join(at)),
)?])
},
);
environment(
|at| {
Ok(vec![
at.bash_env(Provision::Definitions)?,
(
"DEPLOY_SESSION".into(),
at.text().into(),
),
])
},
);
environment(
|_at| Ok(vec![]),
);
}