Skip to content

Commit

Permalink
feat: adopt delete app confirmation to new prompt util
Browse files Browse the repository at this point in the history
Signed-off-by: pashakostohrys <pavel@codefresh.io>
  • Loading branch information
pasha-codefresh committed Nov 5, 2024
1 parent 93b2e77 commit 6d01946
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/argocd/commands/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,9 @@ func NewApplicationDeleteCommand(clientOpts *argocdclient.ClientOptions) *cobra.

numOfApps := len(appNames)

promptUtil := utils.NewPrompt(isTerminal && !noPrompt)
// This is for backward compatibility,
// before we showed the prompts only when condition cascade && isTerminal && !noPrompt is true
promptUtil := utils.NewPrompt(cascade && isTerminal && !noPrompt)
var (
confirmAll = false
confirm bool = false
Expand Down

0 comments on commit 6d01946

Please sign in to comment.