Remix.run Logo
smarx007 a day ago

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.

procaryote 11 hours ago | parent | next [-]

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?

account-5 a day ago | parent | prev [-]

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

https://www.nushell.sh/