cmd

package
v0.0.0-...-1a232cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: MIT Imports: 16 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL