1.1.0 • Published 1 year ago

commit-chad v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Commit Chad

Introduction

Commit Chad is a command-line tool built with zx that leverages the Google Gemini AI API to perform automatically commit message generation with your staged changes.

Installation

  1. First, get a Google Gemini API key for free here. Alternatively, you can use the OpenAI API as well. Get an API key for free here.
  2. Next, set the GEMINI_API_KEY or OPENAI_API_KEY environment variable to your API key:
export GEMINI_API_KEY=<your-api-key>
# or
export OPENAI_API_KEY=<your-api-key>
  1. Finally, install the commit-chad command using npm:
npm install -g commit-chad

This will install the commit-chad command globally, allowing you to use it from anywhere in your terminal.

Usage

commit-chad [options]

Options

  • -h, --help: Display help for the command
  • -v, --version: Display the version of the command
  • -y, --yes: Skip the the confirmation prompt except for the commit message. Default is false.
  • -d, --debug: Enable debug mode, which will log the commands output. Default is false.
  • -dr, --dry-run: Perform a dry run of the command without actually committing the changes. Default is false
  • --openai: Use the OpenAI API as ai provider. Default is true.
  • --gemini: Use the Google Gemini API as ai provider. Default is false.

Examples

  1. Example 1: Skip the some trivial confirmation prompts and enable debug mode
commit-chad --yes --debug
  1. Example 2: Perform a dry run of the command
commit-chad --dry-run

Contributing

If you would like to contribute to this project, fill free to open an issue or submit a pull request at ease.

1.1.0

1 year ago

1.0.28

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago