This commit is contained in:
2026-05-08 04:43:48 +02:00
parent 0174c75506
commit c74b06957c
+13 -4
View File
@@ -613,7 +613,8 @@ bump-new-worktree *packages:
[[ "${#packages[@]}" -gt 0 ]]
export JUST_SYSTEM="$(just _a_system)"
gum confirm --default=no "Check versions on all branches?" && just get-versions "${packages[0]}" ||: # TODO: timeout?
worktree=$(just _new_worktree "$(gum confirm "Use tmp worktree?" && echo tmp-bump || echo bump)" "$(printf "%s\n" "${packages[0]}" | rev | cut -d. -f1 | rev)")
#worktree=$(just _new_worktree "$(gum confirm "Use tmp worktree?" && echo tmp-bump || echo bump)" "$(printf "%s\n" "${packages[0]}" | rev | cut -d. -f1 | rev)")
worktree=$(just _new_worktree "$bump" "$(printf "%s\n" "${packages[0]}" | rev | cut -d. -f1 | rev)")
[[ -n "$worktree" ]]
[[ -d "$worktree" ]]
cd "$worktree"
@@ -680,7 +681,8 @@ fix *packages:
export JUST_SYSTEM="$(just _a_system)"
just open-package-urls "${packages[0]}" ||:
cd "$(just _new_worktree "$(gum confirm "Use tmp worktree?" && echo tmp-fix || echo fix)" "$(echo "${packages[0]}" | rev | cut -d. -f1 | rev)")"
#cd "$(just _new_worktree "$(gum confirm "Use tmp worktree?" && echo tmp-fix || echo fix)" "$(echo "${packages[0]}" | rev | cut -d. -f1 | rev)")"
cd "$(just _new_worktree "fix" "$(echo "${packages[0]}" | rev | cut -d. -f1 | rev)")"
just _fix "${packages[@]}" ||:
if gum confirm "Try to bump?" --default=no; then
rm -rf results-src
@@ -813,8 +815,15 @@ checkout-commit-in-worktree $commit=`just _a_commit`:
@new-worktree *args:
cd "$(just _new_worktree "$@")"; exec just _enter_interactive_shell
@_a_wt_type:
gum choose feat fix init bump doc migrate backport drop tmp tmp-bump tmp-fix tmp-backport
_a_wt_type:
#!/usr/bin/env -S bash -euo pipefail
#gum choose feat fix init bump doc migrate backport drop tmp tmp-bump tmp-fix tmp-backport
wt_type=$(gum choose feat fix init bump doc migrate backport drop)
if gum confirm "Use tmp worktree?"; then
echo "tmp-$wt_type"
else
echo "$wt_type"
fi
@_a_wt_name:
gum input --placeholder="Branch name?"