Class MatcherExtensions
- Namespace
- Acuit.Pinpoint.FileSystemGlobbing
- Assembly
- Acuit.Pinpoint.Configuration.dll
public static class MatcherExtensions
- Inheritance
-
MatcherExtensions
- Inherited Members
Methods
AddExcludePatterns(Matcher, params IEnumerable<string>[])
Adds multiple exclude patterns to Matcher. AddExclude(string)
public static void AddExcludePatterns(this Matcher matcher, params IEnumerable<string>[] excludePatternsGroups)
Parameters
matcherMatcherThe matcher to which the exclude patterns are added
excludePatternsGroupsIEnumerable<string>[]A list of globbing patterns
AddIncludePatterns(Matcher, params IEnumerable<string>[])
Adds multiple patterns to include in Matcher. See AddInclude(string)
public static void AddIncludePatterns(this Matcher matcher, params IEnumerable<string>[] includePatternsGroups)
Parameters
matcherMatcherThe matcher to which the include patterns are added
includePatternsGroupsIEnumerable<string>[]A list of globbing patterns
GetResultsInFullPath(Matcher, string)
Searches the directory specified for all files matching patterns added to this instance of Matcher
public static IEnumerable<string> GetResultsInFullPath(this Matcher matcher, string directoryPath)
Parameters
Returns
- IEnumerable<string>
Absolute file paths of all files matched. Empty enumerable if no files matched given patterns.
Match(Matcher, IEnumerable<string>)
Matches the files passed in with the patterns in the matcher without going to disk.
public static PatternMatchingResult Match(this Matcher matcher, IEnumerable<string> files)
Parameters
matcherMatcherThe matcher that holds the patterns and pattern matching type.
filesIEnumerable<string>The files to run the matcher against.
Returns
- PatternMatchingResult
The match results.
Match(Matcher, string)
Matches the file passed in with the patterns in the matcher without going to disk.
public static PatternMatchingResult Match(this Matcher matcher, string file)
Parameters
matcherMatcherThe matcher that holds the patterns and pattern matching type.
filestringThe file to run the matcher against.
Returns
- PatternMatchingResult
The match results.
Match(Matcher, string, IEnumerable<string>)
Matches the files passed in with the patterns in the matcher without going to disk.
public static PatternMatchingResult Match(this Matcher matcher, string rootDir, IEnumerable<string> files)
Parameters
matcherMatcherThe matcher that holds the patterns and pattern matching type.
rootDirstringThe root directory for the matcher to match the files from.
filesIEnumerable<string>The files to run the matcher against.
Returns
- PatternMatchingResult
The match results.
Match(Matcher, string, string)
Matches the file passed in with the patterns in the matcher without going to disk.
public static PatternMatchingResult Match(this Matcher matcher, string rootDir, string file)
Parameters
matcherMatcherThe matcher that holds the patterns and pattern matching type.
rootDirstringThe root directory for the matcher to match the file from.
filestringThe file to run the matcher against.
Returns
- PatternMatchingResult
The match results.