-
Notifications
You must be signed in to change notification settings - Fork 577
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(cli/support): confirm before creating bundle #12684
Conversation
This reverts commit d44e85b.
cli/support.go
Outdated
cliLog.Info(inv.Context(), "user confirmed manually", slog.F("answer", ans)) | ||
} else { | ||
cliLog.Info(inv.Context(), "user auto-confirmed") |
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: debug or trace level?
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.
Yeah fair, we don't want unnecessary output.
} | ||
|
||
// Check if we're running inside a workspace | ||
if val, found := os.LookupEnv("CODER"); found && val == "true" { |
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: maybe create a util function for this?
Last must-haves of #12163
Forces user to confirm before creating a support bundle.
Also adds contextual information to the bundle under
cli_logs.txt
.Finally, un-hides theEDIT: will un-hide closer to release.support
command`.