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

Method cliOptions

cli/parameter.go:174–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172}
173
174func (bf *buildFlags) cliOptions() []serpent.Option {
175 return []serpent.Option{
176 {
177 Flag: "provisioner-log-debug",
178 Description: `Sets the provisioner log level to debug.
179This will print additional information about the build process.
180This is useful for troubleshooting build issues.`,
181 Value: serpent.BoolOf(&bf.provisionerLogDebug),
182 Hidden: true,
183 },
184 {
185 Flag: "reason",
186 Description: `Sets the reason for the workspace build (cli, vscode_connection, jetbrains_connection).`,
187 Value: serpent.EnumOf(
188 &bf.reason,
189 string(codersdk.BuildReasonCLI),
190 string(codersdk.BuildReasonVSCodeConnection),
191 string(codersdk.BuildReasonJetbrainsConnection),
192 ),
193 Default: string(codersdk.BuildReasonCLI),
194 Hidden: true,
195 },
196 }
197}

Callers 5

stopMethod · 0.95
startMethod · 0.80
restartMethod · 0.80
updateMethod · 0.80
deleteWorkspaceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected