Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Match ¶
Match checks if the path matches the patterns logic. Patterns can include inclusion patterns and exclusion patterns (starting with !). Exclusions take precedence. If no inclusion patterns are present, it implies matching everything (unless excluded).
func MatchAny ¶
MatchAny checks if path matches any of the provided patterns. It supports doublestar syntax. If a pattern contains path separators, it matches against the full path. Otherwise, it matches against the base filename.
func SplitPatterns ¶
SplitPatterns splits patterns into includes and excludes. Patterns starting with '!' are considered excludes (with '!' stripped).
Types ¶
type Config ¶
type Config struct {
Watch WatchConfig `yaml:"watch"`
}
type WatchConfig ¶
type WatchConfig struct {
Watchers []WatcherConfig `yaml:"watchers"`
}
type WatcherConfig ¶
type WatcherConfig struct {
Name string `yaml:"name"`
Directory string `yaml:"directory"`
Patterns []string `yaml:"patterns"`
Commands []string `yaml:"commands"`
Ignore []string `yaml:"ignore"`
IgnorePatterns []string `yaml:"ignore_patterns"`
RunOnStartup bool `yaml:"run_on_startup"`
Timeout int `yaml:"timeout"`
}
Click to show internal directories.
Click to hide internal directories.