MCPcopy Index your code
hub / github.com/coder/coder / SkipPromptOption

Function SkipPromptOption

cli/cliui/prompt.go:36–44  ·  view source on GitHub ↗

SkipPromptOption adds a "--yes/-y" flag to the cmd that can be used to skip confirmation prompts.

()

Source from the content-addressed store, hash-verified

34// SkipPromptOption adds a "--yes/-y" flag to the cmd that can be used to skip
35// confirmation prompts.
36func SkipPromptOption() serpent.Option {
37 return serpent.Option{
38 Flag: skipPromptFlag,
39 FlagShorthand: "y",
40 Description: "Bypass confirmation prompts.",
41 // Discard
42 Value: serpent.BoolOf(new(bool)),
43 }
44}
45
46const (
47 ConfirmYes = "yes"

Callers 15

stopMethod · 0.92
renameMethod · 0.92
startMethod · 0.92
templateCreateMethod · 0.92
autoupdateMethod · 0.92
restartMethod · 0.92

Calls

no outgoing calls

Tested by 1

TestPromptFunction · 0.74