refactor: move debug to internal

This commit is contained in:
2021-11-18 20:04:40 +01:00
parent 0b37f63248
commit cc37615d83
2 changed files with 14 additions and 14 deletions

View File

@ -259,3 +259,15 @@ var HetznerCloudAPITokenFlag = &cli.StringFlag{
EnvVars: []string{"HCLOUD_TOKEN"},
Destination: &HetznerCloudAPIToken,
}
// Debug stores the variable from DebugFlag.
var Debug bool
// DebugFlag turns on/off verbose logging down to the DEBUG level.
var DebugFlag = &cli.BoolFlag{
Name: "debug",
Aliases: []string{"d"},
Value: false,
Destination: &Debug,
Usage: "Show DEBUG messages",
}