Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition struct { Field string `yaml:"field" validate:"required"` Value string `yaml:"value" validate:"required"` Operator string `yaml:"operator" validate:"required,oneof=equal not_equal"` }
Condition is a condition structure to apply to files.
type File ¶
type File struct { Permissions os.FileMode `yaml:"mode" validate:"required"` DirPermissions os.FileMode `yaml:"dir_mode"` Template string `yaml:"template" validate:"required"` Conditions []Condition `yaml:"conditions"` TemplateTags TemplateTags `yaml:"template_tags"` DisableTemplating bool `yaml:"disable_templating"` }
File is the structure of a file template.
type IoWriter ¶
type IoWriter struct { }
IoWriter uses the default go ioutils package to write the files.
type Scaffold ¶
type Scaffold struct { UserInput map[string]Variable `yaml:"user_input" validate:"dive"` Files map[string]File `yaml:"files" validate:"required,dive"` }
Scaffold is the configuration for a directory.
type TemplateTags ¶
type TemplateTags struct { Open string `yaml:"open" validate:"omitempty,required"` Close string `yaml:"close" validate:"omitempty,required"` }
TemplateTags configures the templating syntax within a file.
type URLFileLoader ¶
type URLFileLoader struct { }
URLFileLoader is responsible for returning Scaffolds from yaml files at a remote URL.
type Variable ¶
type Variable struct { Description string `yaml:"description" validate:"required"` Value string `yaml:"value"` Options []string `yaml:"options"` }
Variable is the config for a variable of mixed types (multi-select, text, etc).
type YamlFileLoader ¶
type YamlFileLoader struct { }
YamlFileLoader is responsible for returning Scaffolds from yaml files.
Click to show internal directories.
Click to hide internal directories.