From e82bb92120e53415de02e879e8dff410c63c00cd Mon Sep 17 00:00:00 2001 From: shmck Date: Mon, 6 Apr 2020 21:38:56 -0700 Subject: [PATCH] tutorial config validate deps proposal Signed-off-by: shmck --- typings/tutorial.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/typings/tutorial.d.ts b/typings/tutorial.d.ts index 313c386e..7961c522 100644 --- a/typings/tutorial.d.ts +++ b/typings/tutorial.d.ts @@ -3,6 +3,7 @@ export type Maybe = T | null export type TutorialConfig = { testRunner: TutorialTestRunner repo: TutorialRepo + dependencies?: TutorialDependency[] } /** Logical groupings of tasks */ @@ -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 +}