util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2017 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Flag_File_Key      = "file"
	Flag_OutputDir_Key = "output-dir"
	Flag_Distro_Key    = "distro"
)

Variables

This section is empty.

Functions

func AddIOFlags

func AddIOFlags(cmd *cobra.Command)

func AddIOFlagsViper

func AddIOFlagsViper(v *viper.Viper, cmd *cobra.Command)

func BindViper

func BindViper(v *viper.Viper, fs *flag.FlagSet, name string)

func BindViperNames

func BindViperNames(v *viper.Viper, fs *flag.FlagSet, viperName string, cobraName string)

func UsageError

func UsageError(cmd *cobra.Command, format string, args ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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