Documentation
¶
Overview ¶
Package bcliconfig defines bcli configuration defaults and schema.
Package bcliconfig defines bcli configuration defaults and schema.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
RootPath string `yaml:"root_path"`
ProjectDirPrefix string `yaml:"project_dir_prefix"`
GitLocation string `yaml:"git_location"`
LogLevel zerolog.Level `yaml:"log_level"`
PostSteps PostStepsConfig `yaml:"post_steps"`
}
Config contains bcli settings loaded from defaults, YAML, and CLI overrides.
func (*Config) ApplyCreateOverrides ¶
func (c *Config) ApplyCreateOverrides(overrides CreateOverrides)
ApplyCreateOverrides applies create command flag overrides to the config.
func (*Config) ApplyRootOverrides ¶
func (c *Config) ApplyRootOverrides(overrides RootOverrides)
ApplyRootOverrides applies root command flag overrides to the config.
type CreateOverrides ¶
type CreateOverrides struct {
RootPath *string
ProjectDirPrefix *string
GitLocation *string
NoGoGetUpdate bool
NoGoModTidy bool
NoGitInit bool
NoGitCommit bool
}
CreateOverrides contains create command flag values that can override config.
type PostStepsConfig ¶
type PostStepsConfig struct {
GoGetUpdate bool `yaml:"go_get_update"`
GoModTidy bool `yaml:"go_mod_tidy"`
GitInit bool `yaml:"git_init"`
GitCommit bool `yaml:"git_commit"`
}
PostStepsConfig contains configurable post-generation step toggles.
type RootOverrides ¶
RootOverrides contains root command flag values that can override config.
Click to show internal directories.
Click to hide internal directories.