Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { ConfigPath string PresenterOpt presenter.Option Output string `mapstructure:"output"` Verbose int `mapstructure:"verbose"` Forbid StringArray `mapstructure:"forbid,deny"` Permit StringArray `mapstructure:"permit,allow"` IgnorePkg StringArray `mapstructure:"ignore-packages"` }
func LoadConfigFromFile ¶
func LoadConfigFromFile(v *viper.Viper, configPath string) (*Application, error)
func (*Application) Build ¶
func (cfg *Application) Build() error
type StringArray ¶
type StringArray []string
func (*StringArray) UnmarshalYAML ¶
func (a *StringArray) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.