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
@@ -6,8 +6,9 @@ import (
// Command
var writeCmd = &cobra.Command{
Use: "write",
Short: "rewrites all config files",
Use: "write",
Short: "rewrites all config files",
PreRun: setVerbosity,
RunE: func(_ *cobra.Command, _ []string) error {
m, err := cfg.LoadZones(false)
if err != nil {