refactor(scoop-list): Allow list manipulation#4718
Conversation
|
In the next PR I will add lastwritetime field so that we can sort the list by last updated/installed time |
|
Source or Bucket? I think |
|
|
|
I just realized that this PR (and the previous one for buckets by @HUMORCE) does not work in Cmd and Bash. No output is shown, unless we remove the Line 645 in 7967905 Line 656 in 7967905 @niheaven any idea why these are essential, and whether we can remove them? |
|
This line has been added here for a long time and I must check original codes. |
|
Found an old explanation of this |
I kinda agree with nightroman there. I didn't fully understand the explanation luke gave (also there are no examples in his comment to reproduce the problem if we remove it). Maybe we just put |
|
I just checked. If you run the command |
And in @nightroman's repo, we may use |
|
Instead of using powershell -noprofile -ex unrestricted -file "D:\Data\Scoop\apps\scoop\current\bin\scoop.ps1" %args%(I'm not even sure why we use |
PS5 doesn't document exit code for If |
|
I tested in PS 5.1 before. Just now, I tested in PS 7.1.2. Both work nicely 👍 |
|
Not only scoop itself, but also other apps with Emm, it's better to open a new PR for such changes. |
switch parameter for return? nothing else comes to mind at this time. |
i seem to have missed some comments in this thread on gh mobile. |
|
I have not added any new features in this PR. Scoop list shows the same information as it did before. Each new feature should be a new PR IMO |
* refactor(scoop-list): Allow list manipulation * update changelog

Description
Return PSObject instead of printing to terminal.
Motivation and Context
Allows manipulation, sorting etc. of the list with the help of PowerShell's pipelines.
Closes #3162
Closes #4138
Closes #4179
How Has This Been Tested?
Before
After
More features (not possible before)
Homebrew-style output:
Filter apps from a bucket:
Checklist: