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

feat(list): support outputting installed packages #2733

Merged
merged 2 commits into from
Mar 10, 2024

Conversation

suzuki-shunsuke
Copy link
Member

@suzuki-shunsuke suzuki-shunsuke commented Mar 10, 2024

Add command line options -installed and -all (-a) to the command list.

If -installed is set, only installed packages are outputted.

$ aqua list -installed
standard,rhysd/actionlint,v1.6.27
standard,suzuki-shunsuke/cmdx,v1.7.4
standard,sigstore/cosign,v1.13.2
standard,suzuki-shunsuke/ghalint,v0.2.9
standard,int128/ghcp,v1.13.2
standard,golangci/golangci-lint,v1.56.2
standard,goreleaser/goreleaser,v1.24.0
standard,reviewdog/reviewdog,v0.17.1

By default, global configuration files are ignored.
If -a is set, packages in global configuration files are also outputted.

$ aqua list -installed -a
standard,rhysd/actionlint,v1.6.27
standard,suzuki-shunsuke/cmdx,v1.7.4
standard,sigstore/cosign,v1.13.2
standard,suzuki-shunsuke/ghalint,v0.2.9
standard,int128/ghcp,v1.13.2
standard,golangci/golangci-lint,v1.56.2
standard,goreleaser/goreleaser,v1.24.0
standard,reviewdog/reviewdog,v0.17.1
standard,1xyz/pryrite,0.10.20
standard,99designs/aws-vault,v7.2.0
standard,99designs/aws-vault,v6.5.0
standard,99designs/aws-vault,v6.3.0
...

⚠️ Note that this command can output the same packages at multiple times.

e.g.

standard,99designs/aws-vault,v7.2.0
standard,99designs/aws-vault,v6.5.0
standard,99designs/aws-vault,v6.3.0

This is not a bug.
This occurs if one aqua.yaml has the same packages or multiple aqua.yaml have same packages.
If you execute the package on the current directory, the first package's version is used.

@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Mar 10, 2024
@suzuki-shunsuke suzuki-shunsuke modified the milestones: v2.23.2, v2.24.0 Mar 10, 2024
@suzuki-shunsuke
Copy link
Member Author

suzuki-shunsuke commented Mar 10, 2024

@suzuki-shunsuke
Copy link
Member Author

suzuki-shunsuke commented Mar 10, 2024

@suzuki-shunsuke
Copy link
Member Author

suzuki-shunsuke commented Mar 10, 2024

Changed the order and separator.
I think the output gets more human friendly.

$ aqua list -installed   
rhysd/actionlint	v1.6.27	standard
suzuki-shunsuke/cmdx	v1.7.4	standard
sigstore/cosign	v1.13.2	standard
suzuki-shunsuke/ghalint	v0.2.9	standard
int128/ghcp	v1.13.2	standard
golangci/golangci-lint	v1.56.2	standard
goreleaser/goreleaser	v1.24.0	standard
reviewdog/reviewdog	v0.17.1	standard

@suzuki-shunsuke suzuki-shunsuke merged commit 4df269e into main Mar 10, 2024
16 checks passed
@suzuki-shunsuke suzuki-shunsuke deleted the feat-list-installed branch March 10, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant