add language recognizer

Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
This commit is contained in:
Luca Stocchi 2020-11-13 12:38:29 +01:00
parent 652179bd8c
commit 3043388d5b
No known key found for this signature in database
GPG key ID: 930BB00F3FCF30A4
12 changed files with 6828 additions and 106 deletions

11
src/types.ts Normal file
View file

@ -0,0 +1,11 @@
export interface CommandSucceeeded {
readonly succeeded: true;
readonly output?: string;
}
export interface CommandFailed {
readonly succeeded: false;
readonly reason?: string;
}
export type CommandResult = CommandFailed | CommandSucceeeded;