tailon icon indicating copy to clipboard operation
tailon copied to clipboard

Custom action using a pipe

Open samcro1967 opened this issue 1 year ago • 0 comments

I am trying to create a custom command to display a json log file. In order to display the way I want it to, I need to use a pipe. When I use a pipe I get no output. If I remove , "|", "jq", "-r", ".message" from the action, it works, but shows more than I am looking for.

Is there a way to use a pipe in a custom action?

[commands."jq"] stdin = "tail" action = ["jq", "-r", ".msg", "|", "jq", "-r", ".message"]

samcro1967 avatar Feb 26 '23 01:02 samcro1967