mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-04 01:24:09 +02:00
interactive exec
This commit is contained in:
parent
e373f33cff
commit
f6b1010b55
4 changed files with 81 additions and 11 deletions
11
src/main.rs
11
src/main.rs
|
|
@ -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?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue