Add yqFlags to expressionScenario for doc command snippets; fix system op docs

Agent-Logs-Url: https://github.com/mikefarah/yq/sessions/3f8a5375-25fd-4428-a8e6-b630194c36b2

Co-authored-by: mikefarah <1151925+mikefarah@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-28 02:08:14 +00:00
committed by GitHub
co-authored by mikefarah
parent da611f7a2b
commit 884c2d8b6b
3 changed files with 16 additions and 5 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ country: Australia
```
then
```bash
yq '.country = system("/usr/bin/echo"; "test")' sample.yml
yq --enable-system-operator '.country = system("/usr/bin/echo"; "test")' sample.yml
```
will output
```yaml
@@ -63,7 +63,7 @@ a: hello
```
then
```bash
yq '.a = system("/usr/bin/echo")' sample.yml
yq --enable-system-operator '.a = system("/usr/bin/echo")' sample.yml
```
will output
```yaml