Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrApplicationConfigNotFound = fmt.Errorf("application config not found")
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { ConfigPath string `yaml:",omitempty" json:"configPath"` // the location where the application config was read from (either from -c or discovered while loading) Output string `yaml:"output" json:"output" mapstructure:"output"` // -o, the Presenter hint string to use for report formatting Quiet bool `yaml:"quiet" json:"quiet" mapstructure:"quiet"` // -q, indicates to not show any status output to stderr (ETUI or logging UI) Log logging `yaml:"log" json:"log" mapstructure:"log"` // all logging-related options CliOptions CliOnlyOptions `yaml:"-" json:"-"` // all options only available through the CLI (not via env vars or config) SpeculateNextVersion bool `yaml:"speculate-next-version" json:"speculate-next-version" mapstructure:"speculate-next-version"` // -n, guess the next version based on issues and PRs VersionFile string `yaml:"version-file" json:"version-file" mapstructure:"version-file"` // --version-file, the path to a file containing the version to use for the changelog SinceTag string `yaml:"since-tag" json:"since-tag" mapstructure:"since-tag"` // -s, the tag to start the changelog from UntilTag string `yaml:"until-tag" json:"until-tag" mapstructure:"until-tag"` // -u, the tag to end the changelog at EnforceV0 bool `yaml:"enforce-v0" json:"enforce-v0" mapstructure:"enforce-v0"` Title string `yaml:"title" json:"title" mapstructure:"title"` Github githubSummarizer `yaml:"github" json:"github" mapstructure:"github"` }
func LoadApplicationConfig ¶
func LoadApplicationConfig(v *viper.Viper, cliOpts CliOnlyOptions) (*Application, error)
LoadApplicationConfig populates the given viper object with application configuration discovered on disk
func (Application) String ¶
func (cfg Application) String() string
type CliOnlyOptions ¶
type CliOnlyOptions struct { RepoPath string ConfigPath string // -c. where the read config is on disk Verbosity int // -v or -vv , controlling which UI (ETUI vs logging) and what the log level should be }
CliOnlyOptions are options that are in the application config in memory, but are only exposed via CLI switches (not from unmarshaling a config file)
Click to show internal directories.
Click to hide internal directories.