zif icon indicating copy to clipboard operation
zif copied to clipboard

more cleaner output for info

Open ekd123 opened this issue 12 years ago • 6 comments

yum's output is much more cleaner than zif's.

and another feature request, sometimes I just want to get the description or url or other information, this feature would be helpful: zif info installed description PACKAGE or zif info available version PACKAGE.

ekd123 avatar Apr 20 '12 13:04 ekd123

Zif is really designed to be used as a library, rather than as a command line client. That said, I'm open for ideas if you just want to get one bit of data from the package management system. What about something like:

zif pkg-detail gnome-color-manager url zif pkg-detail gnome-color-manager description zif info gnome-color-manager --output=plain --details=description,url

I'm open for ideas.

hughsie avatar Apr 20 '12 13:04 hughsie

pkg-detail seems more cleaner than the last one.

Well, Zif is much faster than Yum even it works as a PackageKit backend. So I prefer Zif for daily use.

ekd123 avatar Apr 20 '12 13:04 ekd123

Are you able to work on a patch, or shall I work on something this weekend?

hughsie avatar Apr 20 '12 13:04 hughsie

@hughsie I can do that, but I don't know how zif works well, maybe I need to read the documentation and the source of zif-tools first. Perhaps I can try :-)

ekd123 avatar Apr 20 '12 14:04 ekd123

Grab the source, and have a look at tools/zif-main.c and then checkout the zif_cmd_get_details() function. That should get you going at least :)

hughsie avatar Apr 20 '12 14:04 hughsie

Sorry for the delay, this feature finally has been done in issue #12.

This would be great if zif can hide the progress bar, because it's always useful when i want to paste the information I've got somewhere else.

ekd123 avatar Apr 23 '12 14:04 ekd123