Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is long overdue. PowerShell has long supported passing structured output (objects) via pipes and this is the closest attempt to approximate that without breaking the world.


I don't know, Nushell does a pretty good job.

https://www.nushell.sh/


This looks like the worst way to do it though

Why not

A: have a flag to the command telling it you want json output?

B: put the actual file descriptor in the environment variable rather than a flag to look for a hardcoded one?


They actually did B:

“[…] if the environment variable STDDATA_FD is present or set to the descriptor to produce the JSON output on.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: