CLI tool to generate code from GPT3 that pretty-prints the output by language, and copies to your clipboard
cargo install a-gpt
For local development:
make release
sudo make install
If the clipboard
feature is enabled and you are running Ubuntu/Debian, you may need to install the following packages:
sudo apt install xorg-dev libxcb-composite0-dev
You will need an OpenAI Api key, and to set the environment variable OPENAI_API_KEY
.
Invoke the a
command followed by a prompt. If the first word in the prompt is a programming language or file-format the pretty-printer recognizes, it will syntax highlight the output.
a python script that fetches a url
a rust program that showcases its various features
a yaml manifest describing a kubernetes deployment
If installed with the clipboard
feature (enabled by default), the output will be copied to the clipboard.