Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb5bc498

Browse files
committed
address PR comments
1 parente90c4db commitb5bc498

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

‎cli/support.go

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (r *RootCmd) supportBundle() *serpent.Command {
8686
}
8787

8888
// Check if we're running inside a workspace
89-
if_,found:=os.LookupEnv("CODER_AGENT_URL");found {
89+
ifval,found:=os.LookupEnv("CODER");found&&val=="true" {
9090
cliLog.Warn(inv.Context(),"running inside coder workspace")
9191
}
9292

@@ -170,16 +170,15 @@ func (r *RootCmd) supportBundle() *serpent.Command {
170170
}
171171
cmd.Options= serpent.OptionSet{
172172
{
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),
178177
},
179178
{
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",
183182
Description:"File path for writing the generated support bundle. Defaults to coder-support-$(date +%s).zip.",
184183
Value:serpent.StringOf(&outputPath),
185184
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp