Skip to content

benodiwal/cognito

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cognito

A handy tool to create CLI commands with a touch of GPT-3 magic! 😇

Running locally:

Prerequisites

  • 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.

Steps:

  • Run the server:
cargo run --bin server
  • Run the cli tool in another terminal:
cargo run --bin cli

Usage:

  • 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>

Demo

Demo

LICENSE

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published