kojix2 / chatgpt-cli

Yet another ChatGPT command line tool
https://kojix2.github.io/chatgpt-cli/
MIT License
25 stars 1 forks source link

If the output destination is not a tty, color coding should be turned off by default. #21

Open kojix2 opened 8 months ago

kojix2 commented 8 months ago

The example commit_message.sh does not work as expected.

git add .
git commit -m "$(git diff --cached | chatgpt -m 'Please create a simple commit message')"

https://github.com/kojix2/PaperClippers/commit/7b4f48d10a2d84b4ca420b4cca32d6e5e7ab5f86

kojix2 commented 8 months ago

https://github.com/kojix2/bleach

git commit -m "$(git diff --cached | chatgpt -m 'Please create a simple commit message' | bleach)"