simple-git-cz

command module
v0.0.0-...-316ca06 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 12 Imported by: 0

README

simple-git-cz

gitのコミットメッセージを簡単に書くためのCLIツール

Example

example example

Features

  • コミットメッセージにつけるprefixを選んで入力を行う
  • prefixに付く絵文字はemojis.jsonで設定し、ランダムで表示される
{
  "feat": ["✨", "🚀", "🎉"],
  "fix": ["🐛", "🔧", "🚑️"],
  "docs": ["📚", "✏️", "📝"],
  "style": ["🎨", "💄", "🎯"],
  "refactor": ["♻️", "🛠️", "🔄"],
  "perf": ["⚡", "🔥", "💨"],
  "test": ["✅", "🧪", "📊"],
  "chore": ["🧹", "📦", "🔒"]
}

Installation

バイナリをビルド
go build -o simple-git-cz
適切な場所に配置
sudo mv simple-git-cz /usr/local/bin
emojis.jsonのpathを環境変数に設定

~/.bashrc~/.zshrc への追加

export EMOJI_FILE=/path/to/your/emojis.json
動かす
simple-git-cz

※ サンプルのGifではエイリアスでgcを設定している

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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