add json syntax highlighting for jq output

JesseBot 2023-11-18 17:25:33 +01:00
parent 57821721e3
commit fae5ed7d65

@ -4,9 +4,14 @@ Actually SeaweedFS can give you more!
# Experience it first # Experience it first
You can continuously watch the SeaweedFS meta data changes. Let's also filter with `jq` and see only the new files created: You can continuously watch the SeaweedFS meta data changes. Let's also filter with `jq` and see only the new files created using this command:
```console ```bash
$ weed filer.meta.tail -timeAgo=3h | jq .eventNotification.newEntry weed filer.meta.tail -timeAgo=3h | jq .eventNotification.newEntry
```
which will return:
```json
{ {
"name": "abc.png", "name": "abc.png",
"chunks": [ "chunks": [
@ -33,9 +38,7 @@ $ weed filer.meta.tail -timeAgo=3h | jq .eventNotification.newEntry
"md5": "KEjYEZgpc//aNM+MhZnj9g==" "md5": "KEjYEZgpc//aNM+MhZnj9g=="
} }
} }
\\ the rest has been truncated for brevity
...
``` ```
See the help: See the help: