@hasna/recordings 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +9 -0
- package/package.json +1 -1
- package/src/cli/index.ts +18 -0
package/dist/cli/index.js
CHANGED
|
@@ -1443,4 +1443,13 @@ args = []
|
|
|
1443
1443
|
}
|
|
1444
1444
|
}
|
|
1445
1445
|
});
|
|
1446
|
+
program.command("remove <id>").alias("rm").alias("uninstall").alias("delete").description("Delete a recording by ID").action((id) => {
|
|
1447
|
+
const deleted = deleteRecording(id);
|
|
1448
|
+
if (deleted) {
|
|
1449
|
+
console.log(chalk.green(`\u2713 Recording ${id} deleted`));
|
|
1450
|
+
} else {
|
|
1451
|
+
console.error(chalk.red(`Recording not found: ${id}`));
|
|
1452
|
+
process.exit(1);
|
|
1453
|
+
}
|
|
1454
|
+
});
|
|
1446
1455
|
program.parse();
|
package/package.json
CHANGED
package/src/cli/index.ts
CHANGED
|
@@ -1073,6 +1073,24 @@ program
|
|
|
1073
1073
|
}
|
|
1074
1074
|
});
|
|
1075
1075
|
|
|
1076
|
+
// ── remove/uninstall ─────────────────────────────────────────────────────────
|
|
1077
|
+
|
|
1078
|
+
program
|
|
1079
|
+
.command("remove <id>")
|
|
1080
|
+
.alias("rm")
|
|
1081
|
+
.alias("uninstall")
|
|
1082
|
+
.alias("delete")
|
|
1083
|
+
.description("Delete a recording by ID")
|
|
1084
|
+
.action((id: string) => {
|
|
1085
|
+
const deleted = deleteRecording(id);
|
|
1086
|
+
if (deleted) {
|
|
1087
|
+
console.log(chalk.green(`✓ Recording ${id} deleted`));
|
|
1088
|
+
} else {
|
|
1089
|
+
console.error(chalk.red(`Recording not found: ${id}`));
|
|
1090
|
+
process.exit(1);
|
|
1091
|
+
}
|
|
1092
|
+
});
|
|
1093
|
+
|
|
1076
1094
|
// ── Run ─────────────────────────────────────────────────────────────────────
|
|
1077
1095
|
|
|
1078
1096
|
program.parse();
|