simple-commit

Crates.iosimple-commit
lib.rssimple-commit
version1.0.2
sourcesrc
created_at2024-07-24 05:10:22.88949
updated_at2024-07-25 04:57:22.536814
descriptionA little CLI written in rust to improve your dirty commits into conventional ones.
homepage
repositoryhttps://github.com/romancitodev/simple-commits
max_upload_size
id1313669
size121,785
romandev (romancitodev)

documentation

README

Simple commits

Check CI

A little CLI written in rust to improve your dirty commits into conventional ones.

👀 Demo (coming soon)

✨ Features

  • Fully conventional commits
  • Auto-commit
  • Custom templates
  • Written in rust

📥 Installation (not available yet)

Install it using cargo!

cargo install simple-commits

🛠 Configuration

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

skip_emoji = true

# Customize your commit template as you want
commit_template = ["git", "commit", "-m", "{{message}}", "&&", "git", "push"]

💻 Usage

To use it you just need to run one command. 😍

sc

or if you prefer to want to use flags:

flags Description
-p | --skip-preview ⚠️ Skips the preview step (Dangerous)
-e | --skip-emoji Skips the emoji step
-c | --commit-template Command to run after generate commit message
--config Set the config path
Commit count: 0

cargo fmt