Documentation
¶
Overview ¶
Package matchers implements the matcher system that connects triggers to power-ups. Matchers define the configuration and priority for how files are processed.
Index ¶
- func CreateMatcher(config *types.MatcherConfig) (*types.Matcher, error)
- func DefaultMatchers() []types.Matcher
- func FilterEnabledMatchers(matchers []types.Matcher) []types.Matcher
- func MergeMatchers(matcherSets ...[]types.Matcher) []types.Matcher
- func RegisterDefaultMatcher(name string, matcher types.Matcher)
- func SortMatchersByPriority(matchers []types.Matcher)
- func ValidateMatcher(matcher *types.Matcher) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMatcher ¶
func CreateMatcher(config *types.MatcherConfig) (*types.Matcher, error)
CreateMatcher creates a new matcher from configuration
func DefaultMatchers ¶
DefaultMatchers returns a set of common matchers for typical dotfiles
func FilterEnabledMatchers ¶
FilterEnabledMatchers returns only enabled matchers
func MergeMatchers ¶
MergeMatchers combines multiple matcher slices, with later ones taking precedence
func RegisterDefaultMatcher ¶
RegisterDefaultMatcher registers a default matcher
func SortMatchersByPriority ¶
SortMatchersByPriority sorts matchers by priority (highest first)
func ValidateMatcher ¶
ValidateMatcher checks if a matcher configuration is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.