0.1.9 • Published 4 months ago

@gitcm/cli v0.1.9

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

gitcm

gitcm is an opinionated git commits message helper.

Usage

npx @gitcm/cli

Installation

You can choose to install globally so that you can use the gitcm or git-commit commands. They are equivalent to npx @gitcm/cli.

npm install -g @gitcm/cli

More Examples

For example, you can use the following command:

gitcm init "init commit"

Which will execute the following command:

git commit -m ":tada: init: init commit"

We provide an interactive cli tool.

$ gitcm
┌  @gitcm/cli - v0.1.4
│
●  Config file found in C:\Users\Jannchie\.config\gitcm\config.json
│
◇  What is the commit type? (required)
│  ✨ feat
│
◇  What is the commit scope? (optional)
│  test
│
◇  What is the commit body? (required)
│  this is a commit message
│
◇  Your commit command is ─────────────────────────────────────────╮
│                                                                   │
│  git commit -m ":sparkles: feat(test): this is a commit message"  │
│                                                                   │
├───────────────────────────────────────────────────────────────────╯

You can also set the type, scope and body with command-line arguments:

# git commit -m ":sparkles: feat(test): test commit"
gitcm feat test "test commit" 

# git commit -m ":sparkles: feat: test commit"
gitcm feat "test commit" 

We provide an AI-powered commit message generator.

# Generate a commit message with OpenAI ChatGPT API
gitcm -a

You can find help with the following command:

gitcm --help

Configuration

When you use this command for the first time, it writes the configuration in ~/.config/gitcm/config.json.

You can change the configuration by editing this file.

License

MIT

0.1.9

4 months ago

0.1.8

4 months ago

0.1.7

4 months ago

0.1.6

7 months ago

0.1.5

8 months ago

0.1.4

8 months ago

0.1.3

8 months ago

0.1.2

8 months ago

0.1.0

8 months ago