Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "container-shifter", Short: "A golang binary to push/pull docker images", Long: "This is a golang tool to support the mass push and pull of docker images from public to private registries.", PersistentPreRun: func(cmd *cobra.Command, args []string) { logLevel, err := cmd.Flags().GetString("log-level") if err != nil { log.Fatal(err) } switch logLevel { case "debug": log.SetLevel(log.DebugLevel) case "error": log.SetLevel(log.ErrorLevel) default: log.SetLevel(log.InfoLevel) } }, }
RootCmd adds 'kube-client' root command and handles the log-level flag for root and any subcommands
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.