Added
Filter
To apply filtering, you need to create livejq.toml file in the project root.
It contains labels. labels are filter labels which you can apply with -f / --filter flag.
Example config file:
# livejq.toml
allow = ["name"] # default
[network-fail] # -f network-fail
allow = ["failed"]
[memory-info] # -f memory-info
allow = ["memory"]Then run the application as
./your_program | livejq -f network-fail
# you can apply multiple filters
./your_program | livejq -f network-fail memory-infowhen not label is created, default is used. For each label, you can only give allow or disallow, not both.
When not flag is used while running the program, the default flag is used.