sauceignore

package
v0.175.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExcludeSauceIgnorePatterns added in v0.151.0

func ExcludeSauceIgnorePatterns(files []string, sauceignoreFile string) []string

ExcludeSauceIgnorePatterns excludes any match with sauceignore content. If loading and parsing the sauceignore content fails, no filtering is applied.

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 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