config

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CLIFlags []cli.Flag

Will be populated in init() below

Functions

func GetCLIFlagFromVarName

func GetCLIFlagFromVarName(name string) string

GetCLIFlagFromVarName returns the name of the CLI flag associated with a config var

Types

type Config

type Config struct {
	*viper.Viper
}

Config is a complete set of app configuration

func NewConfig

func NewConfig() *Config

NewConfig create a new Config instance

func (*Config) UpdateFromCLIContext

func (conf *Config) UpdateFromCLIContext(c *cli.Context) error

UpdateFromCLIContext updates a config based on flags set in CLI context

Jump to

Keyboard shortcuts

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