mirror of
https://github.com/charmbracelet/gum.git
synced 2024-09-11 06:16:03 +03:00
13 lines
271 B
Bash
Executable File
13 lines
271 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ADD="Add"
|
|
RESET="Reset"
|
|
|
|
ACTION=$(gum choose "$ADD" "$RESET")
|
|
|
|
if [ "$ACTION" == "$ADD" ]; then
|
|
git status --short | cut -c 4- | gum choose --no-limit | xargs git add
|
|
else
|
|
git status --short | cut -c 4- | gum choose --no-limit | xargs git restore
|
|
fi
|