feat(changelog): 添加 --no-generate 标志以支持纯模板生成
- 新增 `--no-generate` 参数,强制使用模板生成而非 AI - 调整 `--yes` 参数仅跳过交互提示,不改变生成行为 - 统一使用工具函数替代 println 输出
This commit is contained in:
26
README.md
26
README.md
@@ -236,6 +236,10 @@ quicommit profile token
|
||||
quicommit config set-llm ollama
|
||||
quicommit config set-llm ollama --base-url http://localhost:11434 --model llama2
|
||||
|
||||
> ⚠️ **Security note**: passing your API key as a CLI argument puts it in your shell
|
||||
> history and process list. Prefer running `quicommit config set-api-key` (or
|
||||
> `config set-llm`) without the key to enter it via a hidden prompt instead.
|
||||
|
||||
# Configure OpenAI
|
||||
quicommit config set-llm openai
|
||||
quicommit config set-api-key YOUR_API_KEY
|
||||
@@ -329,7 +333,7 @@ quicommit config reset --force
|
||||
| `--commitlint` | Use commitlint format |
|
||||
| `--no-verify` | Skip commit message verification |
|
||||
| `-t, --think` | Enable LLM thinking/reasoning mode (overrides config) |
|
||||
| `-y, --yes` | Skip confirmation |
|
||||
| `-y, --yes` | Skip confirmation prompts only (generation behavior unchanged) |
|
||||
| `--push` | Push after committing |
|
||||
| `--remote` | Specify remote repository (default: origin) |
|
||||
|
||||
@@ -349,7 +353,7 @@ quicommit config reset --force
|
||||
| `-r, --remote` | Specify remote repository (default: origin) |
|
||||
| `--dry-run` | Dry run |
|
||||
| `-t, --think` | Enable LLM thinking/reasoning mode (overrides config) |
|
||||
| `-y, --yes` | Skip confirmation |
|
||||
| `-y, --yes` | Skip confirmation prompts only (generation behavior unchanged) |
|
||||
|
||||
### Changelog Options
|
||||
|
||||
@@ -366,7 +370,8 @@ quicommit config reset --force
|
||||
| `--format` | Format (keep-a-changelog, github-releases) |
|
||||
| `--dry-run` | Dry run (output to stdout) |
|
||||
| `--think` | Enable LLM thinking/reasoning mode (overrides config) |
|
||||
| `-y, --yes` | Skip confirmation |
|
||||
| `--no-generate` | Generate deterministically from template (no AI call) |
|
||||
| `-y, --yes` | Skip confirmation prompts only (generation behavior unchanged) |
|
||||
|
||||
## Configuration File
|
||||
|
||||
@@ -425,6 +430,9 @@ auto_generate = true
|
||||
path = "CHANGELOG.md"
|
||||
auto_generate = true
|
||||
|
||||
[output]
|
||||
emoji = true
|
||||
|
||||
[repo_profiles]
|
||||
"/path/to/work/project" = "work"
|
||||
"/path/to/personal/project" = "personal"
|
||||
@@ -436,7 +444,15 @@ auto_generate = true
|
||||
|----------|-------------|
|
||||
| `QUICOMMIT_CONFIG` | Configuration file path |
|
||||
| `EDITOR` | Default editor |
|
||||
| `NO_COLOR` | Disable colored output |
|
||||
| `NO_COLOR` | Disable colored output and emoji decorations (any value) |
|
||||
| `RUST_LOG` | Overrides `-v` log filtering (e.g. `debug`) |
|
||||
|
||||
## Global Options
|
||||
|
||||
- `-v, --verbose` (repeatable): `-v` shows info logs, `-vv` debug, `-vvv` trace.
|
||||
- `--no-color`: disable colors **and** emoji decorations (highest priority).
|
||||
- `--emoji` / `--no-emoji`: force emoji decorations on/off, overriding the `output.emoji` config value.
|
||||
- Emoji decorations can also be configured via `config set output.emoji true|false`.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
@@ -453,7 +469,7 @@ quicommit config set llm.provider ollama
|
||||
# Get configuration value
|
||||
quicommit config get llm.provider
|
||||
|
||||
# Set API key (stored in system keyring)
|
||||
# Set API key (stored in system keyring; omit the value for hidden prompt input)
|
||||
quicommit config set-api-key YOUR_API_KEY
|
||||
|
||||
# Delete API key from keyring
|
||||
|
||||
Reference in New Issue
Block a user