We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb4732f commit b1649eaCopy full SHA for b1649ea
1 file changed
src/core/taskmaster/exec.ts
@@ -388,7 +388,20 @@ export async function tmaiBackupRestoreClearAsync() {
388
switch (tmaiBackupRestoreClearMenu) {
389
case "tmai-backup": {
390
const slot = await askBackupSlotAsync();
391
- await tmai.backupAsync(slot);
+ const { confirm } = await inquirer.prompt({
392
+ type: "confirm",
393
+ name: "confirm",
394
+ message: chalk.yellow(
395
+ `Are you sure you want to create a backup in slot ${slot}?`,
396
+ ),
397
+ default: false,
398
+ });
399
+
400
+ if (confirm) {
401
+ await tmai.backupAsync(slot);
402
+ } else {
403
+ console.log("Backup operation cancelled!");
404
+ }
405
break;
406
}
407
case "tmai-restore": {
0 commit comments