Fixed missing nodes cmd

This commit is contained in:
Juan Font 2021-07-31 23:14:24 +02:00
parent c3aa9a5d4c
commit 6c903d4a2f

View file

@ -11,7 +11,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
func init () { func init() {
rootCmd.AddCommand(nodeCmd)
nodeCmd.PersistentFlags().StringP("namespace", "n", "", "Namespace") nodeCmd.PersistentFlags().StringP("namespace", "n", "", "Namespace")
err := nodeCmd.MarkPersistentFlagRequired("namespace") err := nodeCmd.MarkPersistentFlagRequired("namespace")
if err != nil { if err != nil {