fix(harmony-composer): spawn deploy command to allow interaction
All checks were successful
Run Check Script / check (pull_request) Successful in 1m46s
All checks were successful
Run Check Script / check (pull_request) Successful in 1m46s
This commit is contained in:
parent
284cc6afd7
commit
0861700231
@ -112,18 +112,16 @@ async fn main() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
Commands::Deploy(args) => {
|
Commands::Deploy(args) => {
|
||||||
if args.staging {
|
let deploy = if args.staging {
|
||||||
todo!("implement staging deployment");
|
todo!("implement staging deployment")
|
||||||
|
} else if args.prod {
|
||||||
|
todo!("implement prod deployment")
|
||||||
|
} else {
|
||||||
|
Command::new(harmony_bin_path).arg("-y").arg("-a").spawn()
|
||||||
}
|
}
|
||||||
|
.expect("failed to run harmony deploy");
|
||||||
|
|
||||||
if args.prod {
|
let deploy_output = deploy.wait_with_output().unwrap();
|
||||||
todo!("implement prod deployment");
|
|
||||||
}
|
|
||||||
let deploy_output = Command::new(harmony_bin_path)
|
|
||||||
.arg("-y")
|
|
||||||
.arg("-a")
|
|
||||||
.output()
|
|
||||||
.expect("failed to run harmony deploy");
|
|
||||||
println!(
|
println!(
|
||||||
"deploy output: {}",
|
"deploy output: {}",
|
||||||
String::from_utf8(deploy_output.stdout).expect("couldn't parse from utf8")
|
String::from_utf8(deploy_output.stdout).expect("couldn't parse from utf8")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user