Skip to content
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

[Feature] List app manifests from user added/official buckets. #4852

Closed
Aetopia opened this issue Mar 31, 2022 · 2 comments · Fixed by #5031
Closed

[Feature] List app manifests from user added/official buckets. #4852

Aetopia opened this issue Mar 31, 2022 · 2 comments · Fixed by #5031

Comments

@Aetopia
Copy link

Aetopia commented Mar 31, 2022

Feature Request

Is your feature request related to a problem? Please describe.

At the moment it is not possible to list any applications from an official bucket or user added bucket.
Say, a user adds a bucket and they installed an particular app(s) from it and want to see what other apps the bucket offers.
I could find this useful in scenarios where a user wants to take a glance of available apps from an added bucket.

Describe the solution you'd like

Say the user runs scoop bucket apps <Bucket Name>:

App  Version  Description
---  -------  -----------
App1  v1.0    This an application.
App2  v1.1    Another application.

It should list all given manifests/apps within the specified bucket, incase if all manifests' information cannot be fitted then a page system can be implemented.

So a user can run: scoop bucket apps <Bucket Name> <Page Number>.

A few ways how apps can be listed from a bucket.

  1. Check for .json files in a bucket.
  2. Look for .json files which follow the scoop manifest format and list them as listable apps.

Describe alternatives you've considered

You can use Windows/File Explorer to explore the bucket and check out app manifests but this is extremely inconvenient.
Bringing this directly into the terminal make viewing apps from buckets from accessible.

@Aetopia Aetopia changed the title [Feature] List apps from user added/official buckets. [Feature] List app manifests from user added/official buckets. Mar 31, 2022
@HUMORCE
Copy link
Member

HUMORCE commented Mar 31, 2022

this should be implemented in scoop-list.

@hgkamath
Copy link

hgkamath commented Apr 26, 2022

PS C:\WINDOWS\system32> scoop list main/*
Installed apps matching 'main/*':
PS C:\WINDOWS\system32> scoop list extras/*
Installed apps matching 'extras/*':
PS C:\WINDOWS\system32> scoop help list
Usage: scoop list [query]

Lists all installed apps, or the apps matching the supplied query.
PS C:\WINDOWS\system32> scoop list ^g
Installed apps matching '^g':
<this lists those installed apps that start with g>

scoop list lists only the installed apps. It accepts a 3rd argument regexp query on the app-name. However, as seen above, it does not parse bucket-prefix in app-name. I think OP is interested in all apps from the bucket that may or may not have been installed .

scoop info does understand bucket-prefix in app name.

PS C:\WINDOWS\system32> scoop info extras/mc


Name        : mc
Description : Native GNU Midnight Commander for Win32
Version     : 4.8.27
Bucket      : extras
Website     : https://midnight-commander.org
License     : GPL-3.0-or-later
Updated at  : 3/7/2022 1:56:35 AM
Updated by  : github-actions[bot]
Binaries    : mc.exe
Shortcuts   : mc

One way to do this, if scoop info were augmented as per #4889 Ensure scoop info * outputs an object-stream in the powershell spirit. Then one could write a small powershell script to filter out those objects that are from specified-bucket. Perhaps an addition to that bug could be to also make-work scoop info extras/*, that would reduce one check in the subsequent filter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants