From 6d019467f0c1a76e9b6823b2f73e00676221fb03 Mon Sep 17 00:00:00 2001 From: pashakostohrys Date: Tue, 5 Nov 2024 14:41:27 +0200 Subject: [PATCH] feat: adopt delete app confirmation to new prompt util Signed-off-by: pashakostohrys --- cmd/argocd/commands/app.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/argocd/commands/app.go b/cmd/argocd/commands/app.go index c4f146983de45..4d5ae35bda46b 100644 --- a/cmd/argocd/commands/app.go +++ b/cmd/argocd/commands/app.go @@ -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