cmd

package
v0.0.0-...-8e27a68 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootCmd = &cobra.Command{
		Use:   "shard",
		Short: "Shard is a api light client",
		PersistentPreRun: func(cmd *cobra.Command, args []string) {
			viper.BindPFlags(cmd.Flags())

			viper.BindPFlag("verbose", cmd.Flags().Lookup("verbose"))

			if viper.GetBool("verbose") {
				logrus.SetLevel(logrus.DebugLevel)
			} else {
				logrus.SetLevel(logrus.ErrorLevel)
			}
		},
	}
)

Functions

func Execute

func Execute()

Types

type InputType

type InputType int
const (
	Bin InputType = 1 << iota
	Filename
	BinRuntime
)

Jump to

Keyboard shortcuts

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