@@ -86,7 +86,7 @@ func (r *RootCmd) supportBundle() *serpent.Command {
86
86
}
87
87
88
88
// Check if we're running inside a workspace
89
- if _ ,found := os .LookupEnv ("CODER_AGENT_URL " );found {
89
+ if val ,found := os .LookupEnv ("CODER " );found && val == "true" {
90
90
cliLog .Warn (inv .Context (),"running inside coder workspace" )
91
91
}
92
92
@@ -170,16 +170,15 @@ func (r *RootCmd) supportBundle() *serpent.Command {
170
170
}
171
171
cmd .Options = serpent.OptionSet {
172
172
{
173
- Flag :"confirm" ,
174
- FlagShorthand :"y" ,
175
- Env :"CODER_SUPPORT_BUNDLE_CONFIRM" ,
176
- Description :"By setting this to true, you confirm that you will treat the resulting support bundle as if it contained sensitive information." ,
177
- Value :serpent .BoolOf (& confirm ),
173
+ Flag :"confirm" ,
174
+ Env :"CODER_SUPPORT_BUNDLE_CONFIRM" ,
175
+ Description :"By setting this, you confirm that you will treat the resulting support bundle as if it contained sensitive information." ,
176
+ Value :serpent .BoolOf (& confirm ),
178
177
},
179
178
{
180
- Flag :"output" ,
181
- FlagShorthand :"o " ,
182
- Env :"CODER_SUPPORT_BUNDLE_OUTPUT " ,
179
+ Flag :"output-file " ,
180
+ FlagShorthand :"O " ,
181
+ Env :"CODER_SUPPORT_BUNDLE_OUTPUT_FILE " ,
183
182
Description :"File path for writing the generated support bundle. Defaults to coder-support-$(date +%s).zip." ,
184
183
Value :serpent .StringOf (& outputPath ),
185
184
},