4 ms·
This is long overdue. PowerShell has long supported passing structured output (objects) via pipes and this is the closest attempt to approximate that without br
by smarx007 1y 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.
- account-5 1y agoI don't know, Nushell does a pretty good job. https://www.nushell.sh/ https://www.nushell.sh/
- procaryote 1y agoThis 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?
- grodriguez100 1y agoThey actually did B: “[…] if the environment variable STDDATA_FD is present or set to the descriptor to produce the JSON output on.”