Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Version: constant.Version, Use: "vaultenv", Short: "Root Short", Long: `Root Long`, DisableAutoGenTag: true, SilenceUsage: true, Annotations: map[string]string{ "tests": `[ { "name": "Version", "needs": ["Print Env"], "args": ["--version"], "output": "/^vaultenv version \\d+\\.\\d+\\.\\d+$/" } ]`, }, PersistentPreRun: func(cmd *cobra.Command, args []string) { log = logrus.New() level, err := logrus.ParseLevel(viper.GetString("LOG_LEVEL")) if err != nil { log.Fatal(err) } log.SetLevel(level) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.