Documentation ¶
Overview ¶
This module is invoked when we do template rendering during "zero create."
Each module can have a "conditions" section in their zero-module.yml that specifies a condition in the form:
conditions: - action: ignoreFile matchField: <the name of a parameter in zero-module.yml> whenValue: <value for the matchField that triggers this condition> data: - <arbitrary string>
The structure for this is defined in: internal/config/projectconfig/project_config.go. The definition is in that file simply to avoid cyclic dependencies; but The logic for each type of condition exists here.
See: internal/generate/generate_modules.go See: internal/config/projectconfig/project_config.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Perform ¶
func Perform(cond projectconfig.Condition, mod projectconfig.Module)
Function dispatch for any kind of condition.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.