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
@@ -19,8 +19,9 @@ var gatewayCmd = &cobra.Command{
// gateway set
var gatewaySetCmd = &cobra.Command{
Use: "set",
Short: "gateway set sets machines as gateways",
Use: "set",
Short: "gateway set sets machines as gateways",
PreRun: setVerbosity,
RunE: func(_ *cobra.Command, args []string) error {
m, err := cfg.LoadZones(false)
if err != nil {