Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ID ID `yaml:"-"`
// Regex patterns:
// Prefixed with `!` denotes a exclude pattern.
// Escaping for a first `!` can be done with `\!`.
Patterns []string `yaml:"patterns" validate:"required"`
// If the regex match (`BaseDir`) against the root directory
// or the components root dir.
RelativeToRoot bool `yaml:"relToRoot"`
BaseDir string `yaml:"-"`
// contains filtered or unexported fields
}
func (*Config) SplitIntoIncludeAndExcludes ¶
func (in *Config) SplitIntoIncludeAndExcludes()
SplitIntoIncludeAndExcludes splits the patterns into include and exclude patterns.
type ID ¶
type ID string
func DefineIDComp ¶
func (ID) IsComponent ¶
IsComponent tells if this input id refers to the whole component instead of to an input set on the component. TODO: Wrap into better types (also 'comp://subdir' would be possible, maybe not needed).
Click to show internal directories.
Click to hide internal directories.