sauceignore

package
v0.134.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 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 Matcher

type Matcher interface {
	Match(path []string, isDir bool) bool
}

Matcher defines matcher for sauceignore patterns.

func NewMatcher

func NewMatcher(ps []Pattern) Matcher

NewMatcher constructs a new matcher.

func NewMatcherFromFile

func NewMatcherFromFile(path string) (Matcher, error)

NewMatcherFromFile constructs a new matcher from file.

type Pattern

type Pattern struct {
	P string
}

Pattern defines a single sauceignore pattern.

func Dedupe added in v0.101.1

func Dedupe(patterns []Pattern) []Pattern

Dedupe takes a list of patterns and returns them back sans any duplicates.

func NewPattern

func NewPattern(p string) Pattern

NewPattern create new Pattern.

func PatternsFromFile added in v0.100.0

func PatternsFromFile(path string) ([]Pattern, error)

PatternsFromFile reads .sauceignore file and creates ignore patters if .sauceignore file is exists.

Jump to

Keyboard shortcuts

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