Skip to content

Commit

Permalink
feat: set default to no, change wording
Browse files Browse the repository at this point in the history
  • Loading branch information
tmlye committed Feb 20, 2024
1 parent 56b54f5 commit 1237ddb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/commands/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub enum Commands {
pub struct Deploy {
#[arg(help = "Name of the app to deploy")]
name: String,
#[arg(long, help = "Environment to deploy to")]
#[arg(short, long, help = "Environment to deploy to")]
env: String,
#[arg(short, long, help = "The image to deploy, e.g. yourimage:v1")]
image: Option<String>,
Expand Down Expand Up @@ -133,8 +133,9 @@ impl Deploy {
let new_svc_yaml = serde_yaml::to_string(&new_svc)?;
self.render_diff(existing_svc_yaml, new_svc_yaml)?;
let selection = FuzzySelect::with_theme(&dialoguer::theme::ColorfulTheme::default())
.with_prompt("Do you want to apply the above diff?")
.with_prompt("Do you want to apply the above changes?")
.items(&["no", "yes"])
.default(0)
.interact()
.unwrap();
if selection == 0 {
Expand Down

0 comments on commit 1237ddb

Please sign in to comment.