feat: add option to disable archive tags

This commit is contained in:
2026-03-21 01:27:43 +05:30
parent f0cc07f513
commit 7180569b87
5 changed files with 40 additions and 11 deletions
+3 -1
View File
@@ -45,13 +45,15 @@ program
.description("Close a multi-model tmux session")
.argument("<session-name>", "Name of the tmux session to close")
.option("-c, --cleanup-worktrees", "Remove worktrees and delete branches", true)
.option("-t, --add-tags", "Create archive tags before deleting branches", true)
.option("-f, --force", "Skip confirmation prompts", false)
.action(async (sessionName: string, options: { cleanupWorktrees: boolean; force: boolean }) => {
.action(async (sessionName: string, options: { cleanupWorktrees: boolean; force: boolean; addTags: boolean }) => {
try {
const result = await closeMultiModel({
sessionName,
cleanupWorktrees: options.cleanupWorktrees,
force: options.force,
createArchiveTags: options.addTags,
});
if (result.success) {