Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions typings/tutorial.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export type Maybe<T> = T | null
export type TutorialConfig = {
testRunner: TutorialTestRunner
repo: TutorialRepo
dependencies?: TutorialDependency[]
}

/** Logical groupings of tasks */
Expand Down Expand Up @@ -57,3 +58,12 @@ export interface TutorialRepo {
uri: string
branch: string
}

export interface TutorialDependency {
// A string command that, when run in a terminal, returns a value
command: string
// A regex pattern to match the output to determine if the dependency was found
expected: string
// A message or instructions to the user of what went wrong and what to do
message: string
}