mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
feat(cli): add --provisioner-log-debug
option (#14558)
Allows starting a build in debug mode from the CLI without needing to have the build fail first by adding `--provisioner-log-debug`.
This commit is contained in:
@ -127,3 +127,21 @@ func parseParameterMapFile(parameterFile string) (map[string]string, error) {
|
||||
}
|
||||
return parameterMap, nil
|
||||
}
|
||||
|
||||
// buildFlags contains options relating to troubleshooting provisioner jobs.
|
||||
type buildFlags struct {
|
||||
provisionerLogDebug bool
|
||||
}
|
||||
|
||||
func (bf *buildFlags) cliOptions() []serpent.Option {
|
||||
return []serpent.Option{
|
||||
{
|
||||
Flag: "provisioner-log-debug",
|
||||
Description: `Sets the provisioner log level to debug.
|
||||
This will print additional information about the build process.
|
||||
This is useful for troubleshooting build issues.`,
|
||||
Value: serpent.BoolOf(&bf.provisionerLogDebug),
|
||||
Hidden: true,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user