Documentation ¶
Index ¶
- type Manager
- func (mgr *Manager) AllSettings() map[string]interface{}
- func (mgr *Manager) ConfigCommand(root *cobra.Command) *cobra.Command
- func (mgr *Manager) Flags() *pflag.FlagSet
- func (mgr *Manager) InitFlags(cfg interface{}) error
- func (mgr *Manager) ReadInConfig() error
- func (mgr *Manager) Unmarshal(config interface{}) error
- func (mgr *Manager) VersionCommand(root *cobra.Command) *cobra.Command
- func (mgr *Manager) Viper() *viper.Viper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is the configuration manager.
func (*Manager) AllSettings ¶
AllSettings wraps viper.AllSettings()
func (*Manager) ConfigCommand ¶
ConfigCommand prints the read config values to the output stream.
func (*Manager) ReadInConfig ¶
ReadInConfig wraps viper.ReadInConfig()
func (*Manager) VersionCommand ¶
VersionCommand prints version information to the output stream.
Click to show internal directories.
Click to hide internal directories.