Crates.io | dev-shell |
lib.rs | dev-shell |
version | 0.0.2 |
source | src |
created_at | 2023-07-30 19:47:06.245566 |
updated_at | 2023-07-30 20:01:59.999639 |
description | A command line shell for using GenerativeAI tools in the command line |
homepage | |
repository | https://github.com/grahambrooks/dev-shell |
max_upload_size | |
id | 930211 |
size | 359,927 |
This is a ChatGPT CLI application written in Rust. The application allows users to interact with the ChatGPT API for AI text generation within their terminal.
As a cli the application can accept input from other tools.
git log HEAD~2 | dev-shell Summarize as a release note
Clone the repository and run the tests
cargo test
Build the application
cargo build --release
add the binary target/release/dev-shell
to your path or copy to a directory that is already on your path.
The following summarizes changes and commits those changes.
git diff | dev-shell Summarize changes as a git commit message. | git commit -a -F -
Which is a little long-winded, so you can create an alias in your shell.
alias dscommit="git diff | dev-shell Summarize changes as a git commit message. | git commit -a -F -"
Currently, repository maintenance is manual and run semi regularly.
rustup update
Remember to update the rust toolchain used by bazel in the WORKSPACE.bazel file.
The following command will update the Cargo.lock file with the latest versions of dependencies.
cargo update
This command then takes the updated dependencies and updates the equivalent bazel dependencies.
export CARGO_BAZEL_REPIN=true
bazel test //...