- Notifications
You must be signed in to change notification settings - Fork928
feat(cli/support): confirm before creating bundle#12684
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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?
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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`.