Skip to content

Commit

Permalink
Update console-input-requestor.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteThisCoding authored Aug 10, 2021
1 parent 56c836c commit 0ed6540
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/input-requestor/console-input-requestor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ const tryRequire = require("try-require");
const enquirer = tryRequire("enquirer");
const prompt = enquirer ? enquirer.prompt : null;

/**
* This subclass provides functionality specific to getting user input from a command line terminal
*/
export class ConsoleUserInputRequestor extends BaseUserInputRequestor {

/**
* Implementing the abstract method based on what we need for this specific context
*/
protected getInput(
displayText: string,
defaultValue?: string,
Expand All @@ -20,6 +27,9 @@ export class ConsoleUserInputRequestor extends BaseUserInputRequestor {
}
}

/**
* Implementing the abstract method based on what we need for this specific context
*/
protected async getBoolean(
displayText: string,
defaultValue?: boolean
Expand Down

0 comments on commit 0ed6540

Please sign in to comment.