1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-04 01:24:09 +02:00

interactive exec

This commit is contained in:
Robin Appelman 2021-03-13 20:24:17 +01:00
commit f6b1010b55
4 changed files with 81 additions and 11 deletions

View file

@ -72,7 +72,16 @@ async fn main() -> Result<()> {
}
HazeCommand::Exec => {
let cloud = get_by_filter(&mut docker, None, &config).await?;
cloud.exec(&mut docker, args.options).await?;
cloud
.exec(
&mut docker,
if args.options.is_empty() {
vec!["bash".to_string()]
} else {
args.options
},
)
.await?;
}
HazeCommand::Occ => {
let cloud = get_by_filter(&mut docker, None, &config).await?;