[CLI]: Read input from process.stdin, not just file
jmcdo29 opened this issue · 1 comments
jmcdo29 commented
Is there an existing issue that is already proposing this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe it
Not really a problem. Just a feature I think would be good to implement and I want to track this. I'd like to be able to let the ogma
CLI read input from a stream like a piped process and not just from a file
Describe the solution you'd like
I'd like to be able to run something like nest start --watch | ogma
and have json: true
in my OgmaModule
's configuration but still see the nice dev logs.
Teachability, documentation, adoption, migration strategy
Mention it in the docs and say it works similarly to pino's pretty cli
What is the motivation / use case for changing the behavior?
More flexibility in how logs are viewed, and the ability to have the same config not relying on env variables for dev and prod builds