package logger import ( "github.com/spf13/cobra" ) var cfg string var loggerCmd = &cobra.Command{ Use: "logger", Short: "Manage internal logger", } func InitCmd(cmd *cobra.Command, config string) { cfg = config cmd.AddCommand(loggerCmd) }