diff options
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/yc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/.local/bin/yc b/.local/bin/yc index c0108cf..16c2e9b 100755 --- a/.local/bin/yc +++ b/.local/bin/yc | |||
@@ -1,11 +1,10 @@ | |||
1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | TYPE=$(gum choose "fix" "feat" "docs" "style" "refactor" "test" "chore" "revert") | ||
4 | SCOPE=$(gum input --placeholder "scope") | 3 | SCOPE=$(gum input --placeholder "scope") |
5 | 4 | ||
6 | test -n "$SCOPE" && SCOPE="($SCOPE)" | 5 | test -n "$SCOPE" && SCOPE="($SCOPE)" |
7 | 6 | ||
8 | SUMMARY=$(gum input --value "$TYPE$SCOPE: " --placeholder "summary of this change") | 7 | SUMMARY=$(gum input --value "$SCOPE: " --placeholder "summary of this change") |
9 | DESCRIPTION=$(gum write --placeholder "details of this change (<C-d> to finish)") | 8 | DESCRIPTION=$(gum write --placeholder "details of this change (<C-d> to finish)") |
10 | 9 | ||
11 | gum confirm "commit changes?" && yadm commit -m "$SUMMARY" -m "$DESCRIPTION" | 10 | gum confirm "commit changes?" && yadm commit -m "$SUMMARY" -m "$DESCRIPTION" |