only block interaction if env var set

This commit is contained in:
Kyle Spearrin 2020-03-12 15:37:21 -04:00
parent 13d1067eda
commit b816ddddff
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ export class LoginCommand {
protected i18nService: I18nService) { }
async run(email: string, password: string, cmd: program.Command) {
const canInteract = process.stdout.isTTY && process.env.BW_NOINTERACTION !== 'true';
const canInteract = process.env.BW_NOINTERACTION !== 'true';
if ((email == null || email === '') && canInteract) {
const answer: inquirer.Answers = await inquirer.createPromptModule({ output: process.stderr })({
type: 'input',