mirror of
https://github.com/charmbracelet/gum
synced 2024-06-16 12:35:06 +02: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
|