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: Introduce kraft pkg show #536

Merged
merged 1 commit into from
Dec 17, 2023
Merged

Conversation

MdSahil-oss
Copy link
Contributor

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

Added a subcommand show for command kraft pkg.

Now any package information can be seen with the help of command kraft pkg show packName in the format of YAML|JSON .

@MdSahil-oss MdSahil-oss changed the title feat(pkg): Added a subcommand show for command kraft pkg feat: Added a subcommand show for command kraft pkg Jun 24, 2023
@MdSahil-oss MdSahil-oss force-pushed the pkg-show branch 3 times, most recently from a3f9d59 to 3361021 Compare June 24, 2023 17:45
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.

Took an initial look and it seems fine

I remember this working when I last saw it

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.

Hey @MdSahil-oss

Tried it out a final time and works fine. Some final comments from my side regarding messages passed to the user.

After this we'll merge, I promise 🤞

manifest/manager.go Outdated Show resolved Hide resolved
packmanager/umbrella.go Outdated Show resolved Hide resolved
packmanager/umbrella.go Outdated Show resolved Hide resolved
Signed-off-by: sahil <mohdssahil1@gmail.com>
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 self-assigned this Dec 17, 2023
@craciunoiuc craciunoiuc merged commit 3a9de5e into unikraft:staging Dec 17, 2023
4 checks passed
nderjung added a commit to nderjung/kraftkit that referenced this pull request Dec 19, 2023
This commit effectively reverses unikraft#536 in favour of using the
existing package manager's `Catalog` method.  Since packages
already expose a `Columns` method, this information can be used
to "show" information about a specific named package.
Simultaneously, the `Catalog` method and the information returned
by the implementing `pack.Package` works for all current package
managers.

Secondly, wrap the invocations of `Catalog` with `tui.processtree`
which is useful when used with the `-u|--update` flag for very
long wait times and to help indicate to the user the longevity
of the invocation.

Finally, utilize the newly introduced `PrintPackages` method
which was previously ripped from `kraft pkg ls`.

Signed-off-by: Alexander Jung <alex@unikraft.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gsoc Google Summer of Code Contribution
Projects
Status: 🚀 Done
Development

Successfully merging this pull request may close these issues.

3 participants