Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MordragT/comoji
https://github.com/MordragT/comoji
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/MordragT/comoji
- Owner: MordragT
- License: mit
- Created: 2023-04-21T23:12:24.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-09T07:19:35.000Z (3 months ago)
- Last Synced: 2024-07-09T09:45:59.195Z (3 months ago)
- Language: Rust
- Size: 120 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# comoji 🦀
[![Rust](https://img.shields.io/badge/Made_for-Rust-orange.svg?logo=rust&style=for-the-badge)](https://www.rust-lang.org/)![License](https://img.shields.io/github/license/mordragt/comoji?style=for-the-badge)
Comoji - Conventional Commits using Emojis
## About
This project was originally written for using [**gitmoji**](https://github.com/carloscuesta/gitmoji) from your command line,
but has since evolved into a helper for [**conventional commits**](https://www.conventionalcommits.org/en/v1.0.0/).
Instead of using text though, emojis are used as the commit type.## Install
### Cargo
```bash
git clone [email protected]:MordragT/comoji.git
cd comoji
$ cargo install --path . --locked
```
### Nix FlakesAdd comoji as nix input and simply use the overlay.
```nix
{
inputs.comoji.url = "github:MordragT/comoji";
outputs = { self, nixpkgs, comoji, ... }@inputs:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ comoji.overlays.default ];
};
in {
...
home.packages = with pkgs; [ comoji ];
}
}
```## Usage
```bash
$ comoji --help
``````
CLI for conventional emoji commitsUsage: comoji [OPTIONS]
Commands:
list List all available comojis
commit Interactively commit using the prompts
config Setup preferences
help Print this message or the help of the given subcommand(s)Options:
-v, --verbose
-h, --help Print help
```### Commit
You can use the commit functionality in two ways, directly or via a commit-hook.
#### Client
Start the interactive commit client, to auto generate your commit based on your prompts.
```bash
$ comoji commit
```#### Hook
Set config as shown below.
```bash
$ git add .
$ git commit
```⚠️ The hook **should not be used** with the `comoji commit` command.
### List
Pretty print all the available comojis.
```bash
$ comoji list
```### Config
Run `comoji config` to setup some preferences, such as the auto `git add .` feature.
## Acknowledgements
- [GitMoji](https://github.com/kegesch/gitmoji-cli) - the project comoji is built upon