4个版本 (稳定)
1.0.2 | 2024年7月25日 |
---|---|
0.2.0 | 2024年7月24日 |
#64 在 模板引擎
每月下载量 366
43KB
1K SLoC
简单提交
一个小型的Rust编写的CLI,用于将你的脏提交改进为常规提交。
👀 示例 (即将推出)
✨ 功能
- 完全常规提交
- 自动提交
- 自定义模板
- 用Rust编写
📥 安装 (暂不可用)
使用cargo安装!
cargo install simple-commits
🛠 配置
在你的 ~/$CONFIG_FOLDER
中创建一个 sc
目录,并在其中创建一个 config.toml
。
[!TIP]
mkdir ~/$CONFIG_FOLDER/sc && touch ~/$CONFIG_FOLDER/sc/config.toml
并使用此模板进行配置。
# 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"]
💻 使用方法
要使用它,你只需运行一个命令。 😍
sc
或者如果你愿意使用标志
标志 | 描述 |
---|---|
-p | --skip-preview |
⚠️ 跳过预览步骤(危险) |
- | --skip-emoji |
跳过表情符号步骤 |
- | --commit-template |
生成提交信息后的命令 |
--config |
设置配置路径 |
依赖
~7–19MB
~170K SLoC