Skip to content

Commit

Permalink
chore: add notice for missing shell-gpt dependency
Browse files Browse the repository at this point in the history
Added a check for the `sgpt` command and a message prompting users to install
the shell-gpt package if it is not found. This improves user experience by
providing clear instructions for resolving the missing dependency.
  • Loading branch information
ylogx committed Aug 21, 2024
1 parent 6e6b299 commit 9fe3f5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/bin/auto_commit
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ else
fi

# Generate the commit message
hash sgpt || printf "Please install shell-gpt using:\n \npip install shell-gpt\n \nThis will add the 'sgpt' cli tool.\n"
MSG=$(echo "$DIFF" | sgpt --model gpt-4o-mini --code "$PROMPT")
echo "$MSG"

Expand Down

0 comments on commit 9fe3f5e

Please sign in to comment.