mirror of
https://github.com/iyear/tdl
synced 2025-01-09 04:17:35 +08:00
chore(cmd): output namespace
This commit is contained in:
parent
da51754f61
commit
a50baa764b
@ -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)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user