json-log-viewer icon indicating copy to clipboard operation
json-log-viewer copied to clipboard

Reading from stdin

Open kolypto opened this issue 1 year ago • 1 comments

Currently it's not possible to read from stdin:

$ docker logs tasks 2>&1 | ./jlv -
Something went wrong: os: open -: no such file or directory.

A workaround is to use bash process substitution:

$ ./jlv <(docker logs tasks 2>&1)

kolypto avatar Mar 04 '24 12:03 kolypto

another way around is to use tee.

docker logs tasks | tee tasks.logs
jlv tasks.logs

btw, it's planned to be implemented! thanks for the issue!

hedhyw avatar Mar 04 '24 17:03 hedhyw

included in v0.5.1

hedhyw avatar Jun 02 '24 13:06 hedhyw