-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add prompting to confirm delete certificate #20547
feat: add prompting to confirm delete certificate #20547
Conversation
Signed-off-by: pashakostohrys <[email protected]>
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #20547 +/- ##
=========================================
Coverage ? 55.18%
=========================================
Files ? 324
Lines ? 55101
Branches ? 0
=========================================
Hits ? 30409
Misses ? 22083
Partials ? 2609 ☔ View full report in Codecov by Sentry. |
cmd/argocd/commands/cert.go
Outdated
} | ||
} else { | ||
fmt.Println("No certificates were removed (none matched the given patterns)") | ||
fmt.Printf("The command to to remove all certificates for '%s' was cancelled.\n", hostNamePattern) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
fmt.Printf("The command to to remove all certificates for '%s' was cancelled.\n", hostNamePattern) | |
fmt.Printf("The command to remove all certificates for '%s' was cancelled.\n", hostNamePattern) |
cmd/argocd/commands/cert.go
Outdated
fmt.Printf("Removed cert for '%s' of type '%s' (subtype '%s')\n", cert.ServerName, cert.CertType, cert.CertSubType) | ||
} | ||
} else { | ||
fmt.Println("No certificates were removed (none matched the given patterns)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: patterns
-> pattern
Signed-off-by: pashakostohrys <[email protected]>
It allows for prompt behavior configuration through settings or flags. By default, prompts are disabled, ensuring no change to existing functionality. However, users can enable prompts for their CLI if desired.
Details here:
#19528