feat: config command (#71)

This commit is contained in:
Hiroki Osame
2023-02-21 22:04:40 +09:00
parent 05f70e344e
commit 0d3f35c135
7 changed files with 275 additions and 190 deletions

View File

@@ -13,7 +13,6 @@
---
## Installation and Usage
The minimum supported version of Node.js is v14 LTS. You can check your Node.js version with `node --version`.
1. Install the CLI:
@@ -28,9 +27,11 @@ The minimum supported version of Node.js is v14 LTS. You can check your Node.js
3. Set the key so aicommits can use it:
```sh
echo "OPENAI_KEY=<your token>" >> ~/.aicommits
aicommits config set OPENAI_KEY=<your token>
```
This will create a `.aicommitsrc` file in your home directory.
4. You're ready to go!
Run `aicommits` in any Git repo and it will generate a commit message for you.