mirror of
https://github.com/GayPizzaSpecifications/darwin-apk.git
synced 2025-08-03 13:31:32 +00:00
add different match types to search
This commit is contained in:
12
Sources/dpk-cli/PatternMatcher.swift
Normal file
12
Sources/dpk-cli/PatternMatcher.swift
Normal file
@ -0,0 +1,12 @@
|
||||
/*
|
||||
* darwin-apk © 2024 Gay Pizza Specifications
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import Foundation
|
||||
import ArgumentParser
|
||||
|
||||
protocol PatternMatcher {
|
||||
init(patterns: [String], ignoreCase: Bool) throws(ExitCode)
|
||||
func match(_ field: String) -> Bool
|
||||
}
|
Reference in New Issue
Block a user