aicommits 2.0.0-develop.22 → 2.0.0-develop.23

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.
package/README.md CHANGED
@@ -95,12 +95,13 @@ aicommits --all # or -a
95
95
 
96
96
  #### CLI Options
97
97
 
98
+ - `--all` or `-a`: Automatically stage changes in tracked files for the commit (default: **false**)
99
+ - `--clipboard` or `-c`: Copy the selected message to the clipboard instead of committing (default: **false**)
98
100
  - `--generate` or `-g`: Number of messages to generate (default: **1**)
99
101
  - `--exclude` or `-x`: Files to exclude from AI analysis
100
- - `--all` or `-a`: Automatically stage changes in tracked files for the commit (default: **false**)
101
102
  - `--type` or `-t`: Git commit message format (default: **plain**). Supports `plain`, `conventional`, and `gitmoji`
102
- - `--confirm` or `-y`: Skip confirmation when committing after message generation (default: **false**)
103
- - `--clipboard` or `-c`: Copy the selected message to the clipboard instead of committing (default: **false**)
103
+ - `--prompt` or `-p`: Custom prompt to guide the LLM behavior (e.g., specific language, style instructions)
104
+ - `--yes` or `-y`: Skip confirmation when committing after message generation (default: **false**)
104
105
 
105
106
  #### Generate multiple recommendations
106
107
 
@@ -130,6 +131,24 @@ aicommits --type plain # or -t plain (default)
130
131
 
131
132
  This feature is useful if your project follows a specific commit message standard or if you're using tools that rely on these commit formats.
132
133
 
134
+ #### Custom Prompts
135
+
136
+ You can customize the LLM's behavior with the `--prompt` flag to guide commit message generation:
137
+
138
+ ```sh
139
+ # Write commit messages in a specific language
140
+ aicommits -p "Write commit messages in Italian"
141
+
142
+ # Focus on specific aspects of the changes
143
+ aicommits -p "Focus on performance implications of changes"
144
+
145
+ # Use a specific style or tone
146
+ aicommits -p "Use technical jargon suitable for senior developers"
147
+
148
+ # Include specific details in the message
149
+ aicommits -p "Always mention the specific function names and file paths changed"
150
+ ```
151
+
133
152
  ### Git hook
134
153
 
135
154
  You can also integrate _aicommits_ with Git via the [`prepare-commit-msg`](https://git-scm.com/docs/githooks#_prepare_commit_msg) hook. This lets you use Git like you normally would, and edit the commit message before committing.