cmd

package
v0.0.0-...-d1639a3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "epoxy",
	Short: "A Memcached Proxy",
	Long:  `A description which need to be longer.`,
	PersistentPreRun: func(cmd *cobra.Command, _ []string) {
		log.SetOutput(os.Stderr)
		level, err := log.ParseLevel(viper.GetString("log-level"))
		if err != nil {
			log.WithError(err).Fatal("Logrus: ParseLevel")
		}
		log.SetLevel(level)
		log.SetOutput(os.Stdout)
	},
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Types

This section is empty.

Jump to

Keyboard shortcuts

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