This project is a collection of GPT scripts that help with software development tasks. The scripts can be run easily with the command-line interface (CLI).
First, create a virtual environment in the project directory. This helps manage dependencies and isolate them from other projects.
For macOS and Linux:
python3 -m venv venvFor Windows:
python -m venv venvActivate the virtual environment to start using it.
For macOS and Linux:
source venv/bin/activateFor Windows:
venv\Scripts\activateInstall the required dependencies using the following command:
pip install -r requirements.txtCreate a .env file in the project directory and add your OpenAI API key. This key will be used by the script to make requests to OpenAI's API.
OPENAI_API_KEY=your_openai_api_key_here
Run the appropriate setup script to add the CLI command gcu to your PATH.
For macOS and Linux:
./setup.shFor Windows:
setup.batAfter completing the setup, you can use the gcu command to invoke the script from anywhere in your terminal.
gcu [util_name] <arguments>For example:
gcu merge-conflicts --merge-from="a branch containing the payment refactor" --merge-to="the main branch"This utility helps resolve merge conflicts by generating a new version of the file with the conflicts resolved. It takes two arguments: the branch containing the changes you want to merge and the branch you want to merge the changes into.
merge-conflicts- Ensure you are in a Git repository when running the script, as it relies on Git commands to detect merge conflicts.
- If you encounter issues with the PATH not updating immediately, try restarting your terminal or running the following command:
For macOS and Linux (depending on your shell):
source ~/.zshrc # For zsh
source ~/.bashrc # For bashFor Windows, restart the command prompt.