fix(core): update

This commit is contained in:
2020-08-31 19:25:25 +00:00
parent ffe0f202f0
commit aa74482b29
5 changed files with 36 additions and 25 deletions

View File

@ -46,16 +46,19 @@ export interface IValidateFunction {
*/
export class SmartInteract {
// STATIC
public static async getCliConfirmation(questionArg: string, defaultArg: boolean): Promise<boolean> {
public static async getCliConfirmation(
questionArg: string,
defaultArg: boolean
): Promise<boolean> {
const smartinteractInstance = new SmartInteract();
const response = await smartinteractInstance.askQuestion({
default: defaultArg,
message: questionArg,
name: 'question',
type: 'confirm'
type: 'confirm',
});
return response.value;
};
}
// INSTANCE
/**