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