@@ -85,43 +85,12 @@ if [[ "$CURRENT_PACKAGE_VERSION" == "$VERSION" ]] && [[ "$CURRENT_FLAKE_VERSION"
8585 exit 0
8686 fi
8787
88- # Interactive mode: versions are up-to-date, but offer to create git tag
88+ # Interactive mode: versions are up-to-date
8989 if command -v gum > /dev/null 2>&1 ; then
9090 gum style --foreground 2 " ✓ Versions already up to date: $VERSION "
9191 else
9292 echo -e " ${GREEN} ✓ Versions already up to date: $VERSION ${NC} "
9393 fi
94- echo " "
95-
96- # Offer to create git tag (interactive mode only)
97- if git rev-parse --git-dir > /dev/null 2>&1 ; then
98- # Check if tag already exists
99- if git rev-parse " v$VERSION " > /dev/null 2>&1 ; then
100- if command -v gum > /dev/null 2>&1 ; then
101- gum style --foreground 3 " ℹ️ Git tag v$VERSION already exists"
102- else
103- echo -e " ${YELLOW} ℹ️ Git tag v$VERSION already exists${NC} "
104- fi
105- else
106- echo " "
107- if command -v gum > /dev/null 2>&1 ; then
108- if gum confirm --default=No " Create git tag v$VERSION ?" ; then
109- git tag -a " v$VERSION " -m " Release v$VERSION "
110- gum style --foreground 2 " ✓ Created git tag v$VERSION "
111- echo " "
112- gum style --foreground 240 " To push tag: git push origin v$VERSION "
113- fi
114- else
115- read -p " Create git tag v$VERSION ? (y/N) " -n 1 -r
116- echo " "
117- if [[ $REPLY =~ ^[Yy]$ ]]; then
118- git tag -a " v$VERSION " -m " Release v$VERSION "
119- echo -e " ${GREEN} ✓ Created git tag v$VERSION ${NC} "
120- echo -e " ${NC} To push tag: git push origin v$VERSION ${NC} "
121- fi
122- fi
123- fi
124- fi
12594
12695 exit 0
12796fi
@@ -183,23 +152,6 @@ if command -v gum >/dev/null 2>&1; then
183152 gum style --foreground 240 " Updated files:"
184153 echo " • $PACKAGE_JSON "
185154 echo " • $FLAKE_NIX "
186- echo " "
187-
188- # Offer to create git tag (interactive mode only)
189- if git rev-parse --git-dir > /dev/null 2>&1 ; then
190- # Check if tag already exists
191- if git rev-parse " v$VERSION " > /dev/null 2>&1 ; then
192- gum style --foreground 3 " ℹ️ Git tag v$VERSION already exists"
193- else
194- echo " "
195- if gum confirm " Create git tag v$VERSION ?" ; then
196- git tag -a " v$VERSION " -m " Release v$VERSION "
197- gum style --foreground 2 " ✓ Created git tag v$VERSION "
198- echo " "
199- gum style --foreground 240 " To push tag: git push origin v$VERSION "
200- fi
201- fi
202- fi
203155
204156 exit 0
205157 else
@@ -219,22 +171,6 @@ else
219171 rm -f " ${PACKAGE_JSON} .backup" " ${FLAKE_NIX} .backup"
220172 echo -e " ${GREEN} ✓ Version updated to $VERSION ${NC} "
221173
222- # Offer to create git tag (interactive mode only)
223- if git rev-parse --git-dir > /dev/null 2>&1 ; then
224- if git rev-parse " v$VERSION " > /dev/null 2>&1 ; then
225- echo -e " ${YELLOW} ℹ️ Git tag v$VERSION already exists${NC} "
226- else
227- echo " "
228- read -p " Create git tag v$VERSION ? (y/N) " -n 1 -r
229- echo " "
230- if [[ $REPLY =~ ^[Yy]$ ]]; then
231- git tag -a " v$VERSION " -m " Release v$VERSION "
232- echo -e " ${GREEN} ✓ Created git tag v$VERSION ${NC} "
233- echo -e " ${NC} To push tag: git push origin v$VERSION ${NC} "
234- fi
235- fi
236- fi
237-
238174 exit 0
239175 else
240176 mv " ${PACKAGE_JSON} .backup" " $PACKAGE_JSON "
0 commit comments