You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think what you're really asking for is perhaps a -j switch (or similar) that causes winget to output structured data in JSON etc. then you can winget.exe show -j | convertfrom-json | select name
Reacted by James Maxson, Patrick Meinecke, Teemu Pölkki, Michael Dale, jfurtner and Max Jakobitsch
On Tue, 19 May 2020, 19:23 jantari, ***@***.***> wrote:
That is to be expected and cannot be solved.
I think what you're really asking for is perhaps a -j switch (or similar)
that causes winget to output structured data in JSON etc. then you can winget.exe
show -j | convertfrom-json | select name
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#196 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABKEMVV6DI6UKOYR2MRNDTRSLFCNANCNFSM4NFHLT2Q>
.
Rolling out a new tool in 2020 as an exe instead of, or at least, without a set of native PowerShell Commands seems, well, surprising. But I also feel like this happened with Project Honolulu, too, where the project team completely missed the desires of the target audience on the first release.
Reacted by Tyler Makaro, Thomas Nieto, James Chaldecott, Mike MacCana, Sebastian N., Chad Tolkien, Rain Sallow (/u/ta11ow), JoBrad, Aurimas Navardauskas, Antonio Landolfi and 5 more
It looks like two features were created to address this concern. Mike MacCana (@mikemaccana) if you believe they don't address this Issue please create a new one. #184#221
#184 and #221 doesn't address the concern as windows commands should output structured data by default. winget.exe show | select 'Name' won't work. It should work.
Demitrius Nelon (@denelon): powershell is the default terminal for windows. winget should support Windows defaults, and not need extra winget-specific steps like outputting a different format and then converting from it.
Additionally - and it feels odd having to say this to a Microsoft employee - outputting native powershell would allow people who want CSV, JSON, Excel or any other format to be supported, allow us to format the output how we want, or do all the normal things one can do with a modern Windows command line app
Demitrius Nelon (@denelon): if the winget team doesn't want to support Windows' standard shell, then why?
Reacted by gab, Kevin Aubuchon, Ryan Beesley and ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
Demitrius Nelon (@denelon): if the winget team doesn't want to support Windows' standard shell, then why?
One possible reason is that PowerShell is not in WinPE (by default) and also not in Windows Server Nano. It would be nice for a package manager to work on Windows Nano.
Also, PowerShell cmdlets must be written in PowerShell or C#. They are going to be slower than this app, which is native C++.
But that is only a guess, I don't know their reasons. I know there's a place for non-PowerShell cli-tools on Windows, but I feel as though there needs to be a special DOCUMENTED section explaining why any given new tooling is NOT PowerShell based. Otherwise we're just going to end up with a mess.
Activity
jantari commentedon May 19, 2020
That is to be expected and cannot be solved.
I think what you're really asking for is perhaps a
-jswitch (or similar) that causes winget to output structured data in JSON etc. then you canwinget.exe show -j | convertfrom-json | select namemikemaccana commentedon May 19, 2020
AspenForester commentedon May 19, 2020
Rolling out a new tool in 2020 as an exe instead of, or at least, without a set of native PowerShell Commands seems, well, surprising. But I also feel like this happened with Project Honolulu, too, where the project team completely missed the desires of the target audience on the first release.
ThomasNieto commentedon May 19, 2020
Created #221 for native PowerShell cmdlets.
KevinMarquette commentedon May 21, 2020
Definitely provide json output support. I'm done with parsing standard output.
denelon commentedon May 23, 2020
It looks like Issue #184 covers JSON output.
denelon commentedon May 23, 2020
It looks like two features were created to address this concern. Mike MacCana (@mikemaccana) if you believe they don't address this Issue please create a new one. #184 #221
mikemaccana commentedon May 23, 2020
#184 and #221 doesn't address the concern as windows commands should output structured data by default.
winget.exe show | select 'Name'won't work. It should work.Demitrius Nelon (@denelon): powershell is the default terminal for windows. winget should support Windows defaults, and not need extra winget-specific steps like outputting a different format and then converting from it.
Additionally - and it feels odd having to say this to a Microsoft employee - outputting native powershell would allow people who want CSV, JSON, Excel or any other format to be supported, allow us to format the output how we want, or do all the normal things one can do with a modern Windows command line app
Demitrius Nelon (@denelon): if the
wingetteam doesn't want to support Windows' standard shell, then why?jantari commentedon May 23, 2020
One possible reason is that PowerShell is not in WinPE (by default) and also not in Windows Server Nano. It would be nice for a package manager to work on Windows Nano.
Also, PowerShell cmdlets must be written in PowerShell or C#. They are going to be slower than this app, which is native C++.
But that is only a guess, I don't know their reasons. I know there's a place for non-PowerShell cli-tools on Windows, but I feel as though there needs to be a special DOCUMENTED section explaining why any given new tooling is NOT PowerShell based. Otherwise we're just going to end up with a mess.
Squashed 'src/SfsClient/sfs-client/' changes from cf18b357..ff315ecf