Skip to content

Commit

Permalink
use --ci flag instead of --cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Apr 16, 2024
1 parent 1860576 commit 918207e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/up.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub struct Args {

#[clap(short, long)]
/// Only stream build logs and exit after it's done
cicd: bool,
ci: bool,

#[clap(short, long)]
/// Service to deploy to (defaults to linked service)
Expand Down Expand Up @@ -322,8 +322,8 @@ pub async fn command(args: Args, _json: bool) -> Result<()> {
}
})];

// Stream deploy logs only if cicd flag is not set
if !args.cicd {
// Stream deploy logs only if ci flag is not set
if !args.ci {
tasks.push(tokio::task::spawn(async move {
if let Err(e) =
stream_deploy_logs(deploy_deployment_id, |log| println!("{}", log.message)).await
Expand All @@ -338,7 +338,7 @@ pub async fn command(args: Args, _json: bool) -> Result<()> {
match wait_for_exit_reason(deployment_id.clone()).await {
Ok(reason) => match reason {
UpExitReason::Deployed => {
if args.cicd {
if args.ci {
println!("{}", "Deploy complete".green().bold());
std::process::exit(0);
}
Expand Down

0 comments on commit 918207e

Please sign in to comment.