aicommit2 2.4.18 → 2.4.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +11 -1
  2. package/dist/cli.mjs +99 -98
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -330,6 +330,10 @@ aicommit2 --all # or -a
330
330
  - `--confirm` or `-y`: Skip confirmation when committing after message generation (default: **false**)
331
331
  - `--clipboard` or `-c`: Copy the selected message to the clipboard (default: **false**).
332
332
  - If you give this option, **_aicommit2_ will not commit**.
333
+ - `--dry-run` or `-d`: Generate commit message without committing (default: **false**).
334
+ - Outputs the generated message without executing a commit.
335
+ - Useful for reviewing messages before manual commit (e.g., with GitHub Desktop).
336
+ - Can be combined with `--clipboard` to copy the message for use in other tools.
333
337
  - `--edit` or `-e`: Open the AI-generated commit message in your default editor for modification (default: **false**)
334
338
  - Opens the message in the editor specified by `$VISUAL`, `$EDITOR`, or platform default
335
339
  - Works with both Git and Jujutsu repositories
@@ -367,6 +371,12 @@ aicommit2 --locale "jp" --all --type "conventional" --generate 3 --clipboard --e
367
371
  # Generate and edit a commit message
368
372
  aicommit2 --edit --type conventional # or gitmoji
369
373
 
374
+ # Generate message without committing (dry-run)
375
+ aicommit2 --dry-run # or -d
376
+
377
+ # Dry-run with clipboard (generate, select, then copy)
378
+ aicommit2 -d -c
379
+
370
380
  # Enable verbose logging for debugging
371
381
  aicommit2 --verbose # or -v
372
382
  ```
@@ -550,7 +560,7 @@ _aicommit2_ offers flexible configuration options for all AI services, including
550
560
  key="<your-api-key>"
551
561
  generate=5
552
562
  includeBody=true
553
- model="gemini-2.0-flash,gemini-1.5-pro"
563
+ model="gemini-2.5-flash,gemini-2.5-pro"
554
564
 
555
565
  [OLLAMA]
556
566
  temperature=0.7