Crates.io | gitmoji-rs |
lib.rs | gitmoji-rs |
version | 2.0.2 |
source | src |
created_at | 2022-07-25 06:00:54.583824 |
updated_at | 2024-02-02 07:01:49.779979 |
description | A [gitmoji](https://gitmoji.dev/) interactive client for using gitmojis on commit messages. |
homepage | |
repository | https://github.com/ilaborie/gitmoji-rs |
max_upload_size | |
id | 632373 |
size | 160,920 |
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.
Pick up the latest binary
Or If you have the Rust toolchain installed you can install with:
# macOS (Homebrew)
$ brew install openssl@3
# macOS (MacPorts)
$ sudo port install openssl
# macOS (pkgsrc)
$ sudo pkgin install openssl
# Arch Linux
$ sudo pacman -S pkg-config openssl
# Debian and Ubuntu
$ sudo apt-get install pkg-config libssl-dev
# Fedora
$ sudo dnf install pkg-config perl-FindBin openssl-devel
# Alpine Linux
$ apk add pkgconfig openssl-dev
# openSUSE
$ sudo zypper in libopenssl-devel
and then cargo install
it
cargo install gitmoji-rs
gitmoji help
, gitmoji --help
Provide the CLI help.
❯ gitmoji help
gitmoji-rs 0.1.0
Igor Laborie <ilaborie@gmail.com>
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
Due to a bug, we cannot use as a git hook yet.
See Issue #1, help welcome
This Action is distributed under the terms of the MIT license, see LICENSE for details.
Any contributions are welcomed!