commit

command module
v1.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 8 Imported by: 0

README

Tests GitHub release MIT license lint workflow help wanted

commit CLI Tool

commit is an AI-powered commit message generator that helps you streamline your version control workflow.

Overview

Instead of racking your brains for a descriptive commit message, simply run the commit tool. It will automatically stage all changed files in your git repository and craft a concise, meaningful commit message for you.

Features:

  • AI-Powered: Leverages OpenAI to generate commit messages.
  • Automatic Staging: Stages all changed files in the git repository.
  • Customizable: Works with user-provided keys and paths.

Installation:

go install github.com/kaatinga/commit@latest

Usage:

commit [global options] command [command options] [arguments...]
Global Options:
  • --key value: Provide a valid key to work with ChatGPT.
  • --path value: Specify the path to your git repository.
  • --help, -h: Display help information.
  • --version, -v: Print the current version of the tool.

Environment Variable:

The tool can optionally read from the OPENAI_API_KEY environment variable to interface with the OpenAI API. Ensure you set this variable if you don't intend to use the --key option directly.

Example:

commit --key abcdefg --path /home/user/my-repo

or just:

commit

For further help or to view a list of commands, run:

commit help

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
gpt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL