chore(cmd): output namespace

This commit is contained in:
iyear 2022-10-19 10:42:03 +08:00
parent da51754f61
commit a50baa764b

View File

@ -28,6 +28,11 @@ var cmd = &cobra.Command{
SilenceUsage: true,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
logger.SetDebug(viper.GetBool(consts.FlagDebug))
ns := viper.GetString(consts.FlagNamespace)
if ns != "" {
color.Cyan("Namespace: %s", ns)
}
},
}