Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitWithError ¶
ExitWithError prints an error message and exits the application with ErrorCode: code
Types ¶
type Contextified ¶
type Contextified struct {
// contains filtered or unexported fields
}
Contextified objects have explicit references to the GlobalContext, so that G can be swapped out for something else. We're going to incrementally start moving objects over to this system.
func NewContextified ¶
func NewContextified(gc *GlobalContext) Contextified
func (Contextified) G ¶
func (c Contextified) G() *GlobalContext
func (Contextified) GStrict ¶
func (c Contextified) GStrict() *GlobalContext
func (*Contextified) SetGlobalContext ¶
func (c *Contextified) SetGlobalContext(g *GlobalContext)
type Contextifier ¶
type Contextifier interface {
G() *GlobalContext
}
type DefaultConfigImpl ¶
type DefaultConfigImpl struct{}
type GlobalContext ¶
type StaticOption ¶
type StaticOption func(config *staticConfig) *staticConfig
StaticOption configures an instance ofg staticConfig lazily
func DefaultStaticCliConfigOption ¶
func DefaultStaticCliConfigOption() StaticOption
DefaultStaticCliConfigOption Configures default CliName, CliDescription and CliEnvPrefix
func DefaultStaticConfigFileOption ¶
func DefaultStaticConfigFileOption() StaticOption
DefaultStaticConfigFileOption configures defaults for ConfigFileName and ConfigFileType
func StaticCliConfigOption ¶
func StaticCliConfigOption(cliName, cliDescription string) StaticOption
StaticCliConfigOption Configures the CliName, CliDescription and CliEnvPrefix of this CLI application
func StaticConfigFileOption ¶
func StaticConfigFileOption(configName, configType string) StaticOption
StaticConfigFileOption configures the ConfigFileName and ConfigFileType
type VDebugLevel ¶
type VDebugLevel int