mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-05 00:54:51 +08:00
Validate command node type and handle multiple results with debug log
Agent-Logs-Url: https://github.com/mikefarah/yq/sessions/928aabc5-ad71-41d8-94ab-403942e3f92d Co-authored-by: mikefarah <1151925+mikefarah@users.noreply.github.com>
This commit is contained in:
co-authored by
mikefarah
parent
5ea069a5ed
commit
53abbbaee9
@@ -7,7 +7,7 @@ The `system` operator allows you to run an external command and use its output a
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
yq --null-input --enable-system-operator '.field = system("command"; "arg1")'
|
||||
yq --enable-system-operator --null-input '.field = system("command"; "arg1")'
|
||||
```
|
||||
|
||||
The operator takes:
|
||||
|
||||
Reference in New Issue
Block a user