hughsie / zif

Lightweight package manager that's compatible with yum
GNU General Public License v2.0
16 stars 2 forks source link

more cleaner output for info #11

Open ekd123 opened 12 years ago

ekd123 commented 12 years ago

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.

hughsie commented 12 years ago

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.

ekd123 commented 12 years ago

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.

hughsie commented 12 years ago

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

ekd123 commented 12 years ago

@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 :-)

hughsie commented 12 years ago

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 :)

ekd123 commented 12 years ago

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.