v1 working

This commit is contained in:
Hassan El Mghari
2023-02-13 19:54:45 -05:00
parent 4eb240f36d
commit 467e8ec03e
3 changed files with 5 additions and 4 deletions

View File

@@ -40,5 +40,6 @@ The next version of the CLI, v2, will address both of these limitations!
## Future tasks
- Add support for conventional commits as a flag that users can enable
- Try supporting more than 200 lines by grabbing the diff per file
- Add support for diffs greater than 200 lines by grabbing the diff per file
- Add support for a flag that can auto-accept
- Build landing page for the 2.0 launch

View File

@@ -8,12 +8,12 @@ import fetch from "node-fetch";
let OPENAI_API_KEY = process.env.OPENAI_API_KEY;
export async function main() {
console.log(chalk.white("▲ ") + chalk.green("Welcome to AICommit!"));
console.log(chalk.white("▲ ") + chalk.green("Welcome to AICommits!"));
if (!OPENAI_API_KEY) {
console.error(
chalk.white("▲ ") +
"Please specify an OpenAI key using export OPENAI_API_KEY='YOUR_API_KEY'"
"Please save your OpenAI API key as an env variable by doing 'export OPENAI_API_KEY=YOUR_API_KEY'"
);
process.exit(1);
}

View File

@@ -1,6 +1,6 @@
{
"name": "aicommits",
"version": "0.3.2",
"version": "1.0.0",
"description": "Writes your git commit messages for you with AI",
"main": "bin/index.js",
"bin": {