romancitodev / simple-commits

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

Home Page:https://crates.io/crates/simple-commit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Install it using cargo!

cargo install simple-commit

Nixos

nix profile install github:romancitodev/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]]
name = "app"
description = "the app itself"

[[scopes]]
name = "core"
description = "the core lib"

[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

About

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

https://crates.io/crates/simple-commit

License:Apache License 2.0


Languages

Language:Rust 93.3%Language:Nix 6.7%