@segersniels/gitmoji

1.14.1 • Public • Published

gitmoji

Actionsnpm

This project provides an easy solution for using gitmoji from your command line. Gitmoji solves the hassle of searching through the gitmoji list! 🎉

About

A simplistic interpretation of the carloscuesta/gitmoji-cli repository with only basic commit functionality.

Usage

Usage: gitmoji [options] [command]

A gitmoji client for using emojis on commit messages.

Options:
  -V, --version     output the version number
  -h, --help        display help for command

Commands:
  commit [options]  Interactively commit using the prompts
  update            Sync emoji list with the repo
  list              List all the available gitmojis
  config            Configure general gitmoji behaviour
  help [command]    display help for command

AI generated message

You can generate commit messages based on your current staged changes by passing the --generate flag to the commit command.

gitmoji commit --generate

To use the latest model (GPT-4 at time of writing) simply enable it in the config using gitmoji config enable. By default gitmoji uses the gpt-3.5-turbo model.

Keep in mind that you will need to set the OPENAI_API_KEY environment variable which you can obtain through the OpenAI website.

Config

Configure global gitmoji settings through an easy prompt selection.

Usage: gitmoji config [options] [command]

Configure general gitmoji behaviour

Options:
  -h, --help      display help for command

Commands:
  enable          Enable behaviour
  disable         Disable behaviour
  list|ls         View the current config
  help [command]  display help for command

Examples

To disable automatic capitalization of the first character of your commit message:

$ gitmoji config disable
? Choose an option to disable ›
❯   capitalize-first-letter

Package Sidebar

Install

npm i @segersniels/gitmoji

Weekly Downloads

1

Version

1.14.1

License

none

Unpacked Size

1.03 MB

Total Files

34

Last publish

Collaborators

  • segersniels