A little CLI written in rust to improve your dirty commits into conventional ones.
- Fully conventional commits
- Auto-commit
- Custom templates
- Written in rust
Install it using cargo!
cargo install simple-commits
in your ~/$CONFIG_FOLDER
create a sc
directory with a config.toml
inside.
Tip
mkdir ~/$CONFIG_FOLDER/sc && touch ~/$CONFIG_FOLDER/sc/config.toml
and use this template to configure it as you want.
# The scopes
scopes = ["app", "lib", "docs"]
[git]
# By default the skip preview flag is setted to false because we know
# It's a dangerous action.
skip_preview = true
# Customize your commit template as you want
commit_template = ["git", "commit", "-m", "{{message}}", "&&", "git", "push"]
To use it you just need to run one command. ๐
sc
or if you prefer to want to use flags:
flags | Description |
---|---|
-s | --skip-preview |
|
-c | --commit-template |
Command to run after generate commit message |
--config |
Set the config path |