This is a simple console application that suggests the required Linux command on user request using ChatGPT.
It was build and tested with:
- Rust
1.80.0
- Ubuntu
22.04
https://platform.openai.com/docs/quickstart
git clone git@github.com:torys877/hintme.git
cd hintme
cp example.env .env
Set your API key into OPENAI_API_KEY
variable in .env
file
cargo build --release
sudo cp ./target/release/hintme /usr/bin
sudo ln -s /usr/bin/hintme /usr/local/bin
export OPENAI_API_KEY="YOUR_API_KEY"
export OPENAI_API_URl="https://api.openai.com/v1/chat/completions"```
hintme how to find all files with extension "torrent", output their paths and delete them?
find /path/to/directory -type f -name "*.torrent" -exec rm {} +