jq: remove tokenization of dot operator (#9428)

pull/1/head
Richard Mörbitz 2022-11-02 05:27:37 +01:00 committed by GitHub
parent bbe0ebab38
commit 28841b6189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@
- Führe den angegebenen Ausdruck aus (gib farbiges und formatiertes JSON aus):
`{{cat pfad/zu/datei.json}} | jq '{{.}}'`
`{{cat pfad/zu/datei.json}} | jq '.'`
- Führe ein gegebenes Skript aus:
@ -29,4 +29,4 @@
- Füge bestimmte Schlüssel hinzu/lösche bestimmte Schlüssel:
`{{cat pfad/zu/datei.json}} | jq '{{.}} {{+|-}} {{{"schlüssel1": "wert1", "schlüssel2": "wert2", ...}}}'`
`{{cat pfad/zu/datei.json}} | jq '. {{+|-}} {{{"schlüssel1": "wert1", "schlüssel2": "wert2", ...}}}'`

View File

@ -5,7 +5,7 @@
- Выполнить указанное выражение (вывести цветной и отформатированный json):
`{{cat путь/к/файлу.json}} | jq '{{.}}'`
`{{cat путь/к/файлу.json}} | jq '.'`
- Выполнить указанный скрипт:
@ -29,4 +29,4 @@
- Добавить/удалить указанные ключи:
`{{cat путь/к/файлу.json}} | jq '{{.}} {{+|-}} {{{"ключ1": "значение1", "ключ2": "значение2", ...}}}'`
`{{cat путь/к/файлу.json}} | jq '. {{+|-}} {{{"ключ1": "значение1", "ключ2": "значение2", ...}}}'`

View File

@ -5,7 +5,7 @@
- Execute a specific expression (print a colored and formatted json):
`{{cat path/to/file.json}} | jq '{{.}}'`
`{{cat path/to/file.json}} | jq '.'`
- Execute a specific script:
@ -29,4 +29,4 @@
- Add/remove specific keys:
`{{cat path/to/file.json}} | jq '{{.}} {{+|-}} {{{"key1": "value1", "key2": "value2", ...}}}'`
`{{cat path/to/file.json}} | jq '. {{+|-}} {{{"key1": "value1", "key2": "value2", ...}}}'`