|
@@ -181,8 +181,13 @@ export default abstract class AccountsCommandBase extends ApiCommandBase {
|
|
|
message = 'Are you sure you want to execute this action?',
|
|
|
defaultVal = false
|
|
|
): Promise<void> {
|
|
|
+ if (process.env.AUTO_CONFIRM === 'true' || parseInt(process.env.AUTO_CONFIRM || '')) {
|
|
|
+ return
|
|
|
+ }
|
|
|
const { confirmed } = await inquirer.prompt([{ type: 'confirm', name: 'confirmed', message, default: defaultVal }])
|
|
|
- if (!confirmed) this.exit(ExitCodes.OK)
|
|
|
+ if (!confirmed) {
|
|
|
+ this.exit(ExitCodes.OK)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
async promptForAccount(
|