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"` ScopeOpt scope.Option Scope string `mapstructure:"scope"` Quiet bool `mapstructure:"quiet"` Log Logging `mapstructure:"log"` CliOptions CliOnlyOptions Db Database `mapstructure:"db"` Dev Development `mapstructure:"dev"` CheckForAppUpdate bool `mapstructure:"check-for-app-update"` }
func LoadConfigFromFile ¶
func LoadConfigFromFile(v *viper.Viper, cliOpts *CliOnlyOptions) (*Application, error)
func (*Application) Build ¶
func (cfg *Application) Build() error
type CliOnlyOptions ¶
type Database ¶
type Database struct { Dir string `mapstructure:"cache-dir"` UpdateURL string `mapstructure:"update-url"` AutoUpdate bool `mapstructure:"auto-update"` }
func (Database) ToCuratorConfig ¶
type Development ¶
type Development struct {
ProfileCPU bool `mapstructure:"profile-cpu"`
}
Click to show internal directories.
Click to hide internal directories.