|
16 | 16 | # ↑/↓ k/j Navigate commands |
17 | 17 | # Enter Execute the highlighted command |
18 | 18 | # c Copy highlighted command to clipboard |
19 | | -# a Execute all commands sequentially |
20 | 19 | # q / Esc Quit |
21 | 20 | # |
22 | 21 | # Aliases: "install" = "setup" = "i", "run" = "start" = "r", "test" = "t" |
@@ -419,7 +418,7 @@ draw_picker() { |
419 | 418 | if [[ -n "$FLASH_MSG" ]]; then |
420 | 419 | printf "\n%s %s%s\n" "$DIM" "$FLASH_MSG" "$RESET" |
421 | 420 | else |
422 | | - printf "\n%s ↑↓ navigate ⏎ execute c copy a run all q quit%s\n" "$DIM" "$RESET" |
| 421 | + printf "\n%s ↑↓ navigate ⏎ execute c copy q quit%s\n" "$DIM" "$RESET" |
423 | 422 | fi |
424 | 423 | (( count += 2 )) # blank line + footer line |
425 | 424 |
|
@@ -558,34 +557,6 @@ run_interactive() { |
558 | 557 | # Draw fresh (PICKER_LINES is 0 so it won't try to erase) |
559 | 558 | ;; |
560 | 559 |
|
561 | | - a) |
562 | | - clear_picker |
563 | | - printf '%s' "$SHOW_CURSOR" |
564 | | - stty "$SAVED_TTY" 2>/dev/null |
565 | | - |
566 | | - printf "%s%s[hdi] %s — running all commands%s\n\n" "$BOLD" "$YELLOW" "$PROJECT_NAME" "$RESET" |
567 | | - |
568 | | - local any_failed=false |
569 | | - for ci in "${CMD_INDICES[@]}"; do |
570 | | - local cmd="${LINE_CMDS[$ci]}" |
571 | | - printf "%s%s❯ %s%s\n" "$BOLD" "$GREEN" "$cmd" "$RESET" |
572 | | - eval "$cmd" |
573 | | - local rc=$? |
574 | | - if (( rc != 0 )); then |
575 | | - printf "%s%s✗ Failed (exit %d) — stopping%s\n\n" "$BOLD" "$YELLOW" "$rc" "$RESET" |
576 | | - any_failed=true |
577 | | - break |
578 | | - fi |
579 | | - echo "" |
580 | | - done |
581 | | - |
582 | | - if ! $any_failed; then |
583 | | - printf "%s%s✓ All commands completed%s\n" "$DIM" "$GREEN" "$RESET" |
584 | | - fi |
585 | | - PICKER_LINES=0 |
586 | | - return |
587 | | - ;; |
588 | | - |
589 | 560 | c) |
590 | 561 | local cmd="${LINE_CMDS[$selected]}" |
591 | 562 | if command -v pbcopy >/dev/null 2>&1; then |
|
0 commit comments