feat: add compose exec and compose bash commands

Exec is new command scoped under compose. It allows sending commands
directly into appserver container. I will make this
customizable/controllable in the future.
This commit is contained in:
2023-06-15 19:57:02 +02:00
parent 7bf76d3ff2
commit b45cfd3e0a
5 changed files with 29 additions and 1 deletions

View File

@@ -24,6 +24,12 @@ impl From<&String> for Args {
}
}
impl From<&[String]> for Args {
fn from(value: &[String]) -> Self {
Self(Vec::from_iter(value.iter().map(|x| x.to_string())))
}
}
#[derive(Default)]
pub struct CommandBuilder {
args: Vec<String>,