-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output can't be used with Powershell #196
Comments
That is to be expected and cannot be solved. I think what you're really asking for is perhaps a |
Is the intention that users launch `cmd` to run winget?
…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. |
Created #221 for native PowerShell cmdlets. |
Definitely provide json output support. I'm done with parsing standard output. |
It looks like Issue #184 covers JSON output. |
It looks like two features were created to address this concern. @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. @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 @denelon: if the |
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. |
ff315ecf User/xiangweiniu/fix missing tab (microsoft#196) da601af9 Bumping version to 1.0.0 (microsoft#195) git-subtree-dir: src/SfsClient/sfs-client git-subtree-split: ff315ecfa2ef2953d8a808e51e8a61a4e0759180
Brief description of your issue
winget.exe show | select 'Name'
Returns blank results. It looks like the output for winget isn't consistent with Powershell, which is the default shell in Windows.
Expected behavior
I should be able to start powershell via
Win X
and use winget.Actual behavior
winget
outputs unstructured data.Environment
The text was updated successfully, but these errors were encountered: