Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading from stdin #55

Closed
kolypto opened this issue Mar 4, 2024 · 2 comments · Fixed by #75
Closed

Reading from stdin #55

kolypto opened this issue Mar 4, 2024 · 2 comments · Fixed by #75
Assignees

Comments

@kolypto
Copy link

kolypto commented Mar 4, 2024

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)
@hedhyw
Copy link
Owner

hedhyw commented Mar 4, 2024

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
Copy link
Owner

hedhyw commented Jun 2, 2024

included in v0.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants