Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ You can also use the local model for free with Ollama.

`--force`: Automatically create a commit without being prompted to select a message (can't be used with `--list`)

`--message-only` Runs the app in a non-interactive mode, avoiding unnecessary prompts or actions beyond displaying the message.

`--filter-fee`: Displays the approximate fee for using the API and prompts you to confirm the request

`--apiKey`: Your OpenAI API key. It is not recommended to pass `apiKey` here, it is better to use `env` variable
Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ const generateSingleCommit = async (diff) => {
return;
}

if (args["message-only"]) {
process.exit(0);
}

const answer = await inquirer.prompt([
{
type: "confirm",
Expand Down