mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20: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,4 +1,4 @@
|
||||
export { conditionSchema, ICondition } from './condition.js'
|
||||
export * from './condition.js'
|
||||
export { stageSchema, IStage } from './stage.js'
|
||||
export { requirementsSchema, IRequirements } from './requirements.js'
|
||||
export { responseSchema, IResponse } from './response.js'
|
||||
@@ -11,24 +11,6 @@ export interface ICommand {
|
||||
pwd?: string
|
||||
}
|
||||
|
||||
export enum FileType {
|
||||
FILE = 'file',
|
||||
FOLDER = 'folder',
|
||||
}
|
||||
|
||||
export interface FileInput {
|
||||
path: string
|
||||
type: FileType
|
||||
}
|
||||
|
||||
export interface FileExistenceInput extends FileInput {
|
||||
exists: boolean
|
||||
}
|
||||
|
||||
export interface IFileExistenceChecker {
|
||||
exists(file: FileInput): Promise<boolean>
|
||||
}
|
||||
|
||||
export interface ISession {
|
||||
completedStages: string[]
|
||||
}
|
||||
Reference in new issue
Block a user