-
Notifications
You must be signed in to change notification settings - Fork 64
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
Conversation
show
for command kraft pkg
show
for command kraft pkg
a3f9d59
to
3361021
Compare
There was a problem hiding this 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
e73a4b4
to
ff0108e
Compare
be4447d
to
93602c8
Compare
show
for command kraft pkg
kraft pkg show
8c3b5a7
to
5cab90f
Compare
There was a problem hiding this 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 🤞
Signed-off-by: sahil <mohdssahil1@gmail.com>
5cab90f
to
4db9276
Compare
There was a problem hiding this 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
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>
Prerequisite checklist
make fmt
on your commit series before opening this PR;Description of changes
Added a subcommand
show
for commandkraft pkg
.Now any package information can be seen with the help of command
kraft pkg show packName
in the format of YAML|JSON .