Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@KunalSin9h KunalSin9h released this 04 Aug 08:45
· 4 commits to master since this release

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-info

when 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.