Closed kpym closed 2 years ago
In the meantime you can use '--format CSV'
el
@ondohotola I know that I can do this. Thanks.
It is possible to automatically change the format when piping output to a destination, but it is impossible to know how the data will be used at that destination. It also confuses users if the data differs from the output to the console. I think it should be specified explicitly by users.
Thanks for considering this request. I don't agree with your logic. The terminal output is supposed to be human readable. The pipe output is supposed to be machine readable. For example all good tools that have colorful terminal output produce raw (without colors) output when they are piped. I agree that the data should be the same, but the form should be adapted to humans or to machines. In any case it is your choice and I appreciate that you took the time to consider my request. 🙏
That makes sense. You may be right. I will add this fix to the next release. Thank you for explaining.
This feature has been included in version 1.17.3.
Fantastic ! Thank you for the quality of your work and your responsiveness 🙏
The text output format is not very useful when we use it as input to another program. Perhaps you can change the default format to
csv
if stdout is sent to another program. This can be done like in this SX answer but withos.Stdout
instead ofos.Stdin
, I think.