infra-kit 0.1.80 → 0.1.81

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.
@@ -78,7 +78,12 @@ export const worktreesRemove = async (options: WorktreeManagementArgs): Promise<
78
78
  if (allSelected) {
79
79
  commandEcho.addOption('--all', true)
80
80
  } else {
81
- commandEcho.addOption('--versions', selectedReleaseBranches)
81
+ commandEcho.addOption(
82
+ '--versions',
83
+ selectedReleaseBranches.map((branch) => {
84
+ return branch.replace('release/v', '')
85
+ }),
86
+ )
82
87
  }
83
88
 
84
89
  // Ask for confirmation
@@ -98,7 +103,7 @@ export const worktreesRemove = async (options: WorktreeManagementArgs): Promise<
98
103
  }
99
104
 
100
105
  // Track --yes flag if confirmation was interactive (user confirmed)
101
- if (allSelected) {
106
+ if (!confirmedCommand) {
102
107
  commandEcho.addOption('--yes', true)
103
108
  }
104
109
 
@@ -134,6 +134,7 @@ interface FormatBranchChoicesArgs {
134
134
  */
135
135
  export const formatBranchChoices = (args: FormatBranchChoicesArgs): { name: string; value: string }[] => {
136
136
  const { branches, descriptions, types } = args
137
+
137
138
  const versionNames = branches.map((b) => {
138
139
  return b.replace('release/v', '')
139
140
  })