matchers

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 14 Imported by: 0

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

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

func DefaultMatchers() []types.Matcher

DefaultMatchers returns a set of common matchers for typical dotfiles

func FilterEnabledMatchers

func FilterEnabledMatchers(matchers []types.Matcher) []types.Matcher

FilterEnabledMatchers returns only enabled matchers

func MergeMatchers

func MergeMatchers(matcherSets ...[]types.Matcher) []types.Matcher

MergeMatchers combines multiple matcher slices, with later ones taking precedence

func RegisterDefaultMatcher

func RegisterDefaultMatcher(name string, matcher types.Matcher)

RegisterDefaultMatcher registers a default matcher

func SortMatchersByPriority

func SortMatchersByPriority(matchers []types.Matcher)

SortMatchersByPriority sorts matchers by priority (highest first)

func ValidateMatcher

func ValidateMatcher(matcher *types.Matcher) error

ValidateMatcher checks if a matcher configuration is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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