condition

package
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL