From 2ebe92d6cce9f5766a76a015ffe888c022e04b23 Mon Sep 17 00:00:00 2001 From: Rubu Jam Date: Mon, 8 Jul 2024 13:44:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs:=20Update=20file=20`README`?= =?UTF-8?q?=20of=20`lobe-commit`=20(#103)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/lobe-commit/README.md | 30 +++++++++++++++++++++------- packages/lobe-commit/README.zh-CN.md | 30 +++++++++++++++++++++------- 2 files changed, 46 insertions(+), 14 deletions(-) diff --git a/packages/lobe-commit/README.md b/packages/lobe-commit/README.md index cfd974c..f9dd9ea 100644 --- a/packages/lobe-commit/README.md +++ b/packages/lobe-commit/README.md @@ -156,6 +156,21 @@ To configure Lobe Commit, run the following command: $ lobe-commit --option # or use short flag -o ``` +### Running + +To make a commit, run one of the following commands: + +```shell +$ lobe-commit --hook # Run either of the two commands +$ git commit +``` + +
+ +[![][back-to-top]](#readme-top) + +
+ - To use AI auto-generation, you need to fill in your [OpenAI token](<(https://platform.openai.com/account/api-keys)>) in the settings. - To automatically pull private issues, you need to fill in your [GitHub token](https://github.com/settings/tokens) with repo permissions in the settings. @@ -170,13 +185,14 @@ $ lobe-commit --option # or use short flag -o Lobe Commit supports the following options: ```shell ---commit -c Interactively commit using the prompts ---option -o Setup lobe-commit preferences ---help -h Print basic options ---init -i Initialize lobe-commit as a commit hook ---remove -r Remove a previously initialized commit hook ---list -l List all the available commit type ---version -v Print lobe-commit installed version +--hook Commit interactively using prompts +-a, --ai Generate prompts by ChatGPT +-o, --option Setup lobe-commit preferences +-i, --init Initialize lobe-commit as a commit hook +-r, --remove Remove a previously initialized commit hook +-l, --list List all commit types supported +-V, --version Print lobe-commit installed version +-h, --help Print basic options ```
diff --git a/packages/lobe-commit/README.zh-CN.md b/packages/lobe-commit/README.zh-CN.md index 5672325..3288ba8 100644 --- a/packages/lobe-commit/README.zh-CN.md +++ b/packages/lobe-commit/README.zh-CN.md @@ -156,6 +156,21 @@ $ lobe-commit --remove # 或使用短标志 -r $ lobe-commit --option # 或使用短标志 -o ``` +### 运行 + +要进行 commit 提交,请运行以下命令: + +```shell +$ lobe-commit --hook # 两个命令任选其一 +$ git commit +``` + +
+ +[![][back-to-top]](#readme-top) + +
+ - 要使用 AI 自动生成,需要在设置中填写 [OpenAI 令牌](https://platform.openai.com/account/api-keys) - 要自动拉取私人仓库 issues,需要在设置中填写具有 repo 权限的 [GitHub 令牌](https://github.com/settings/tokens) @@ -170,13 +185,14 @@ $ lobe-commit --option # 或使用短标志 -o Lobe Commit 支持以下选项: ```shell ---commit -c 使用提示交互式提交 ---option -o 设置lobe-commit首选项 ---help -h 打印基本选项 ---init -i 将lobe-commit初始化为提交钩子 ---remove -r 删除先前初始化的提交钩子 ---list -l 列出所有可用的提交类型 ---version -v 打印lobe-commit安装版本 +--hook 使用基于提示的交互方式进行 commit 提交 +-a, --ai 由 Ai 生成提示 +-o, --option 设置 lobe-commit 首选项 +-i, --init 将 lobe-commit 初始化为提交钩子 +-r, --remove 移除先前初始化的提交钩子 +-l, --list 列出所有支持的提交类型 +-V, --version 打印 lobe-commit 的安装版本 +-h, --help 打印基本选项 ```