summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/yc3
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
3TYPE=$(gum choose "fix" "feat" "docs" "style" "refactor" "test" "chore" "revert")
4SCOPE=$(gum input --placeholder "scope") 3SCOPE=$(gum input --placeholder "scope")
5 4
6test -n "$SCOPE" && SCOPE="($SCOPE)" 5test -n "$SCOPE" && SCOPE="($SCOPE)"
7 6
8SUMMARY=$(gum input --value "$TYPE$SCOPE: " --placeholder "summary of this change") 7SUMMARY=$(gum input --value "$SCOPE: " --placeholder "summary of this change")
9DESCRIPTION=$(gum write --placeholder "details of this change (<C-d> to finish)") 8DESCRIPTION=$(gum write --placeholder "details of this change (<C-d> to finish)")
10 9
11gum confirm "commit changes?" && yadm commit -m "$SUMMARY" -m "$DESCRIPTION" 10gum confirm "commit changes?" && yadm commit -m "$SUMMARY" -m "$DESCRIPTION"