config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Rules []rule.Rule `yaml:"rules"`

	IsDefault bool
}

Config is a travelgrunt repo-level configuration (a sequentially evaluated list of rules)

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns default travelgrunt repo-level configuration

func NewConfig

func NewConfig(path string) (cfg Config, err error)

NewConfig creates new travelgrunt repo-level configuration

func (Config) Admit added in v0.4.0

func (cfg Config) Admit(d os.DirEntry, relPath string) bool

Admit is a global "decider" function that includes/excludes the path given

func (Config) WithNameEx added in v0.5.1

func (cfg Config) WithNameEx(nameEx string) Config

WithNameEx returns a copy of config with regex-based rule added

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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