mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
feat: add stage exceptions
This commit is contained in:
1 parent
f7780c3d98
commit
fb823814e0
11 files changed
+123
-43
No files matched your search
@@ -1,9 +1,9 @@
|
||||
import {
|
||||
ICommand,
|
||||
IFileExistenceChecker,
|
||||
FileExistenceInput,
|
||||
} from '../types.js'
|
||||
import { ICondition } from '../schema/condition.js'
|
||||
IFileInput,
|
||||
ICondition,
|
||||
} from '../schema'
|
||||
import { PwdMatcher } from './PwdMatcher.js'
|
||||
import { CommandMatcher } from './CommandMatcher.js'
|
||||
import { ErrorMatcher } from './ErrorMatcher.js'
|
||||
@@ -14,7 +14,7 @@ import { NotMatcher } from './NotMatcher.js'
|
||||
import { checkFiles } from './FileMatcher.js'
|
||||
|
||||
export class Condition {
|
||||
private files: FileExistenceInput[] = []
|
||||
private files: IFileInput[] = []
|
||||
private matchers: Matcher[] = []
|
||||
|
||||
constructor({ command, output, error, pwd, or, not, files }: ICondition) {
|
||||
|
||||
Reference in new issue
Block a user