A handy tool to create CLI commands with a touch of GPT-3 magic! 😇
- Rust: Ensure you have Rust installed on your system. You can download it from rust-lang.org.
- OpenAI API Key: Obtain an API key from OpenAI.
Run the server:
cargo run --bin server
Run the cli tool in another terminal:
cargo run --bin cli
- Authorize yourself by providing your OPENAI_API key
cargo run --bin cli -- -c <OPENAI_KEY>
cargo run --bin cli -- --config <OPENAI_KEY>
- Get the command once authorized
cargo run --bin cli -- -p <PROMPT>
cargo run --bin cli -- --prompt <PROMPT>
- See the version of tool
cargo run --bin cli -- -v
cargo run --bin cli -- --version
- Help
cagro run --bin cli -- -h
cagro run --bin cli -- --help
- REPL MODE (Yet to implement)
cargo run --bin cli -- -r
cargo run --bin cli -- --repl
- Get the command from file_input (Yet to implement)
cargo run --bin cli -- -f <PROMPT_FILE>
cargo run --bin cli -- --prompt-file <PROMPT_FILE>
This project is licensed under the MIT License. See the LICENSE file for details.