feat(packages/commit): make reroll prompt not require enter
This commit is contained in:
parent
66bc9f679d
commit
87c196e499
1 changed files with 4 additions and 3 deletions
|
@ -27,10 +27,11 @@ pkgs.writeShellScriptBin "commit" # bash
|
|||
RESPONSE=$(aichat "$PROMPT\nGuidelines: $GUIDELINES\nContext from git log:\n$CONTEXT\nDiff from git diff HEAD:\n$DIFF")
|
||||
|
||||
while true; do
|
||||
echo "Generated Commit Message:"
|
||||
echo "$RESPONSE"
|
||||
echo "Options: [y]es, [r]eroll, [e]dit, [q]uit?"
|
||||
read -r -p "Choose an action: " choice
|
||||
echo
|
||||
echo "Choose an action:"
|
||||
read -p "Options: [y]es, [r]eroll, [e]dit, [q]uit?" -n 1 -r choice
|
||||
echo
|
||||
|
||||
case "$choice" in
|
||||
y | yes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue