cmdconfig

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FlagOptions = struct {
	Required func() flagOpt
	Hidden   func() flagOpt
}{
	Required: requiredOpt,
	Hidden:   hiddenOpt,
}

FlagOptions :: shortcut for common flag options

Functions

func InitViper

func InitViper(v *viper.Viper)

InitViper :: initializes and configures an instance of viper

func OnCmd

func OnCmd(cmd *cobra.Command) *configBuilder

OnCmd :: starts a config builder wrapping over the provided *cobra.Command

func Viper

func Viper() *viper.Viper

Viper :: fetches the global viper instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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