jpictl: introduce log verbosity flag

Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
This commit is contained in:
2023-09-10 13:12:50 +03:00
parent 2016b27707
commit d1198328f6
6 changed files with 34 additions and 18 deletions
+3 -2
View File
@@ -52,8 +52,9 @@ const encoding = YAMLEncoding
// Command
var dumpCmd = &cobra.Command{
Use: "dump",
Short: "generates a text representation of the config",
Use: "dump",
Short: "generates a text representation of the config",
PreRun: setVerbosity,
RunE: func(_ *cobra.Command, _ []string) error {
var buf bytes.Buffer
var enc Encoder