Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuilderVar ¶
type BuilderVarDefault ¶ added in v0.0.23
type DraftConfig ¶
type DraftConfig struct { DisplayName string `yaml:"displayName"` NameOverrides []FileNameOverride `yaml:"nameOverrides"` Variables []BuilderVar `yaml:"variables"` VariableDefaults []BuilderVarDefault `yaml:"variableDefaults"` // contains filtered or unexported fields }
TODO: remove Name Overrides since we don't need them anymore
func (*DraftConfig) ApplyDefaultVariables ¶ added in v0.0.34
func (d *DraftConfig) ApplyDefaultVariables(customConfig map[string]string)
ApplyDefaultVariables will apply the defaults to variables that are not already set
func (*DraftConfig) GetNameOverride ¶
func (d *DraftConfig) GetNameOverride(path string) string
func (*DraftConfig) GetVariableExampleValues ¶ added in v0.0.27
func (d *DraftConfig) GetVariableExampleValues() map[string][]string
type FileNameOverride ¶
type TemplateVariableRecorder ¶ added in v0.0.27
type TemplateVariableRecorder interface {
Record(key, value string)
}
TemplateVariableRecorder is an interface for recording variables that are used read using draft configs
Click to show internal directories.
Click to hide internal directories.