GPTask
GPTask is a command-line tool to leverage the power of GPT-4 to automatically format files according to specific prompts.
Installation
Download the package and install using pip:
pip install gptask_cli
Usage
The binary of the package is gptask
. Here are some of the commands:
- To run the gptask on a specific file:
gptask -p your_prompt file
your_prompt
should be a prompt stored in ~/.gptask/prompts
.
- To run the gptask recursively on all files in a directory:
gptask -r your_directory -p your_prompt
- To force execution even if some conditions are not met:
gptask -f -p your_prompt file
If a prompt doesn't exist, GPTask will display available prompts.
For example:
gptask -p non_existent_prompt file
This will output:
Prompt non_existent_prompt not found
Available prompts:
prompt1
prompt2
...
Contribution
Contributions are welcomed! Feel free to open an issue or create a pull request.
License
This project is licensed under the MIT License.
Deploy to brew instructions...
python3 -m pip install homebrew-pypi-poet
python3 -m pip install gptask_cli
poet -f gptask_cli # Copy to ruby file