Skip to content

[RFC] Structured data for non-built in commands #19259

@KoviRobi

Description

@KoviRobi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.Resolution-No ActivityIssue has had no activity for 6 months or more

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions