gitmoji
in Rust
This is just an opinionated version of gitmoji-cli
written in Rust .
A gitmoji interactive client for using gitmojis on commit messages.
Install
Pick up the latest binary
Or If you have the Rust toolchain installed you can install with:
cargo install gitmoji-rs
Usage
gitmoji help
, gitmoji --help
Provide the CLI help.
❯ gitmoji help
gitmoji-rs 0.1.0
Igor Laborie <[email protected]>
A gitmoji client for using emojis on commit messages
USAGE:
gitmoji [OPTIONS] <SUBCOMMAND>
OPTIONS:
-h, --help Print help information
-v, --verbose Verbose mode
-V, --version Print version information
SUBCOMMANDS:
commit Interactively commit using the prompts
help Print this message or the help of the given subcommand(s)
init Setup gitmoji preferences
list List all available gitmojis
search Search gitmojis
update Sync emoji list with the repository
Note that you can also ask help on a specific sub-command, try gitmoji help init
gitmoji init
Interactively initialize the configuration
❯ gitmoji init
✔ Enable automatic "git add ." · no
✔ Select how emojis should be used in commits · 😄
✔ Enable signed commits · no
✔ Enable scope prompt · no
✔ Set gitmojis api url · https://gitmoji.dev/api/gitmojis
Note that you can generate a default configuration without interaction you can use gitmoji init --default
.
gitmoji commit
Interactively create a git commit
❯ gitmoji commit
✔ Pick your flavor · 🚀 :rocket: rocket - Deploy stuff.
✔ Enter the commit title · Initial version
✔ Enter the commit message: · Adding require feature for a basic usage (init, update, list, search, and commit)
[main f4525b2] :rocket: Initial version
12 files changed, 213 insertions(+), 78 deletions(-)
create mode 100644 .github/workflows/bloat.yaml
create mode 100644 .github/workflows/lint.yaml
rename .github/workflows/{ci.yaml => tests.yaml} (51%)
create mode 100644 CHANGELOG.md
create mode 100644 README.md
Note that it's internally use the git
command.
gitmoji update
Update the gitmojis list based on the provided api url.
❯ gitmoji update
🎨 :art: Improve structure / format of the code.
⚡️ :zap: Improve performance.
🔥 :fire: Remove code or files.
🐛 :bug: Fix a bug.
🚑️ :ambulance: Critical hotfix.
✨ :sparkles: Introduce new features.
📝 :memo: Add or update documentation.
🚀 :rocket: Deploy stuff.
💄 :lipstick: Add or update the UI and style files.
🎉 :tada: Begin a project.
...
gitmoji list
List available gitmojis.
❯ gitmoji list
🎨 :art: Improve structure / format of the code.
⚡️ :zap: Improve performance.
🔥 :fire: Remove code or files.
🐛 :bug: Fix a bug.
🚑️ :ambulance: Critical hotfix.
✨ :sparkles: Introduce new features.
📝 :memo: Add or update documentation.
🚀 :rocket: Deploy stuff.
💄 :lipstick: Add or update the UI and style files.
🎉 :tada: Begin a project.
...
gitmoji search
Search a gitmoji
❯ gitmoji search bug
🐛 :bug: Fix a bug.
🏗️ :building_construction: Make architectural changes.
👔 :necktie: Add or update business logic
Missing features
Due to a bug, we cannot use yet.
See Issue #1, help welcome
License
This Action is distributed under the terms of the MIT license, see LICENSE for details.
Contribute and support
Any contributions are welcomed!