Documentation
¶
Overview ¶
Package find is used to find files that match the provided find pattern or CSV file. It also filters out any files that match the exclude pattern (if any)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExcludeFilter ¶ added in v2.2.3
type ExcludeFilter struct{}
ExcludeFilter excludes files that match the exclusion regex.
type Filter ¶ added in v2.2.3
type Filter interface {
// Skip returns true if the match should be excluded from renaming.
Skip(conf *config.Config, match *file.Change) bool
}
Filter defines the interface for all file discovery filters.
type Filters ¶ added in v2.2.3
type Filters []Filter
Filters manages a collection of filters.
func NewFilters ¶ added in v2.2.3
NewFilters creates a new collection of filters based on the configuration.
type IncludeDirFilter ¶ added in v2.2.3
type IncludeDirFilter struct{}
IncludeDirFilter excludes directories unless explicitly included.
type IncludeRegexFilter ¶ added in v2.2.3
type IncludeRegexFilter struct{}
IncludeRegexFilter excludes files that do not match the inclusion regex.
type OnlyDirFilter ¶ added in v2.2.3
type OnlyDirFilter struct{}
OnlyDirFilter excludes non-directory files if OnlyDir is set.
Click to show internal directories.
Click to hide internal directories.