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): Reduce output and provide --all flag to extend it #945

Conversation

nderjung
Copy link
Member

@nderjung nderjung commented Oct 26, 2023

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran make fmt on your commit series before opening this PR;
  • Updated relevant documentation.

Description of changes

This commit reworks the query to the Catalog method such that the host's platform and architecture are incorporated by default. This reduces the output, especially with the OCI package manager's catalog which has an increased list of applications but these vary by architecture and platform.

To show everything, however, introduce an --all flag. This means that if you want to see OCI applications in the remote registry which are applicable to your host, you simply invoke:

kraft pkg ls --apps --update

To view all variants of the same application, now include the --all flag:

kraft pkg ls --apps --update --all

This commit reworks the query to the `Catalog` method such that the
host's platform and architecture are incorporated by default.  This
reduces the output, especially with the OCI package manager's catalog
which has an increased list of applications but these vary by
architecture and platform.

To show everything, however, introduce an `--all` flag.  This means that
if you want to see OCI applications in the remote registry which are
applicable to your host, you simply invoke:

```console
kraft pkg ls --apps --update
```

To view all variants of the same application, now include the `--all`
flag:

```console
kraft pkg ls --apps --update --all
```

Signed-off-by: Alexander Jung <alex@unikraft.io>
@nderjung nderjung force-pushed the nderjung/feat/internal/cli/kraft/pkg/update/all-arch-plat branch from 8a9a935 to 8195d39 Compare October 26, 2023 11:10
Copy link
Member

@craciunoiuc craciunoiuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good here. Thanks!

Reviewed-by: Cezar Craciunoiu cezar.craciunoiu@unikraft.io
Approved-by: Cezar Craciunoiu cezar.craciunoiu@unikraft.io

@craciunoiuc craciunoiuc merged commit 7299009 into unikraft:staging Oct 31, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🚀 Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants