This repository has been archived on 2015-04-29. You can view files and clone it, but cannot push or open issues or pull requests.
notes/syntax.txt
2014-09-12 10:22:38 -04:00

55 lines
829 B
Plaintext

example raw output:
[{
"StdOut": [
{"processes": {"pid": 1, "name": "init"}}
]
},
{
"StdOut": [
{"processes": {"pid": 2, "name": "bash"}}
]
}]
example queries:
$ destreamify "stdout"
[
{"processes": {"pid": 1, "name": "init"},
{"processes": {"pid": 2, "name": "bash"}}
]
$ destreamify "stdout~processes"
[
{"pid": 1", "name": "init"},
{"pid": 2", "name": "bash"},
]
if we had a specialls that output stdout like this:
[
"weird_derp": {
"files": [{"name": ____}]
}
]
Then we would use
$ specialls --json | tributary "stdout>weird_derp"
[
{"files": [{"name": _____}, ...]},
{"files": [{"name": _____}, ...]},
]
Then we can do
$ specialls --json | tributary "stdout>weird_derp" | cat --json
also valid
----------
stdout>"file name">name
stdout>"file>name">name
not valid
---------
stdout>file name>name