mirror of
https://github.com/charmbracelet/gum
synced 2024-06-19 22:15:09 +02:00
13 lines
271 B
Bash
13 lines
271 B
Bash
|
#!/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
|