mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
11 lines
254 B
TypeScript
11 lines
254 B
TypeScript
import { ICommand } from '../schema'
|
|
import { Matcher } from './Matcher.js'
|
|
|
|
export class NotMatcher implements Matcher {
|
|
constructor(private condition: Matcher) {}
|
|
|
|
match(command: ICommand): boolean {
|
|
return !this.condition.match(command)
|
|
}
|
|
}
|