-
Notifications
You must be signed in to change notification settings - Fork 8.2k
[RFC] Structured data for non-built in commands #19259
Description
Summary of the new feature / enhancement
Hi,
I am looking at coming up with a portable way to tell programs that they can output structured data, and telling the shell that the said data is structured according to the given format. For this I have a draft proposal write-up at https://github.com/KoviRobi/structured-shell-stdio but I would like some feedback. Especially as I don't have much experience with PowerShell or Windows, I come from a Linux/nushell background. I don't know how well the file-descriptor idea could be applied to Windows, so please leave feedback either here or on the proposal.
Thanks,
Robert
Proposed technical implementation details (optional)
A way to communicate to external programs that they can output JSON, and for the program to communicate to PowerShell that it is receiving JSON, without having to guess.
This should avoid having to define aliases for all the commands that support e.g. JSON, for example
ip --json addr | ConvertFrom-Json
could become just
ip addr