A ChatGPT command-line tool for fixing errors in your source code
You need Python 3 and an OpenAPI API key.
- Download the source code.
- Unpack it. We'll assume you unpacked to
~/Downloads/fix-main
. - Open a command prompt and change to that directory:
cd ~/Downloads/fix-main
. - Create a virtual environment with
pipenv install
- Create an alias for the command:
alias fix='~/Downloads/fix-main/fix'
.
- Download the source code.
- Unpack it. We'll assume you unpacked to
C:\Users\<user>\Downloads\fix-main
. - Open a command prompt and change to that directory:
cd C:\Users\<user>\Downloads\fix-main
. - Create a Python 3 virtual environment in that directory:
python3 -m venv venv
. - Activate the virtual environment:
call venv\Scripts\activate
. - Install dependencies:
pip install -Ur requirements.txt
- Create an alias for the command:
doskey fix=C:\Users\<user>\Downloads\fix-main\venv\Scripts\python C:\Users\<user>\Downloads\fix-main\main.py
.
The implementation may send files from your system that are mentioned in command outputs to OpenAI's servers. What could possibly go wrong?