mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
docs(policy): remove trailing space from commandPrefix examples (#22264)
Co-authored-by: Jack Wotherspoon <jackwoth@google.com>
This commit is contained in:
@@ -60,7 +60,7 @@ command.
|
|||||||
```toml
|
```toml
|
||||||
[[rule]]
|
[[rule]]
|
||||||
toolName = "run_shell_command"
|
toolName = "run_shell_command"
|
||||||
commandPrefix = "git "
|
commandPrefix = "git"
|
||||||
decision = "ask_user"
|
decision = "ask_user"
|
||||||
priority = 100
|
priority = 100
|
||||||
```
|
```
|
||||||
@@ -264,7 +264,7 @@ argsPattern = '"command":"(git|npm)'
|
|||||||
|
|
||||||
# (Optional) A string or array of strings that a shell command must start with.
|
# (Optional) A string or array of strings that a shell command must start with.
|
||||||
# This is syntactic sugar for `toolName = "run_shell_command"` and an `argsPattern`.
|
# This is syntactic sugar for `toolName = "run_shell_command"` and an `argsPattern`.
|
||||||
commandPrefix = "git "
|
commandPrefix = "git"
|
||||||
|
|
||||||
# (Optional) A regex to match against the entire shell command.
|
# (Optional) A regex to match against the entire shell command.
|
||||||
# This is also syntactic sugar for `toolName = "run_shell_command"`.
|
# This is also syntactic sugar for `toolName = "run_shell_command"`.
|
||||||
@@ -321,7 +321,7 @@ This rule will ask for user confirmation before executing any `git` command.
|
|||||||
```toml
|
```toml
|
||||||
[[rule]]
|
[[rule]]
|
||||||
toolName = "run_shell_command"
|
toolName = "run_shell_command"
|
||||||
commandPrefix = "git "
|
commandPrefix = "git"
|
||||||
decision = "ask_user"
|
decision = "ask_user"
|
||||||
priority = 100
|
priority = 100
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user