cmd

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "vault-openvpn",
	Short: "Manage OpenVPN configuration combined with a Vault PKI",

	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {

		if logLevel, err := log.ParseLevel(viper.GetString("log-level")); err == nil {
			log.SetLevel(logLevel)
		} else {
			return fmt.Errorf("Unable to interprete log level: %s", err)
		}

		return nil
	},
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute(ver string)

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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