feat: add 'undo' option to version command

This commit is contained in:
s41r4j
2026-01-29 00:35:46 +05:30
parent bd906885c2
commit 00217a6ac7
3 changed files with 45 additions and 1 deletions
+1
View File
@@ -791,6 +791,7 @@ program.command('version').alias('v')
.option('--list', 'List S4 tags (hides dev tags by default)')
.option('--prune', 'Prune old dev tags (keeps last 10)')
.option('--all', 'Show all tags (including dev) when listing')
.option('-u, --undo', 'Undo the last version bump (delete latest tag)')
.action(async (type, options) => {
await ensureRepo();
if (!versionCmd) initializeComponents();