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

Output information formatting and progress display on CLI #4

Open
firnsy opened this issue Jan 20, 2016 · 0 comments
Open

Output information formatting and progress display on CLI #4

firnsy opened this issue Jan 20, 2016 · 0 comments

Comments

@firnsy
Copy link
Member

firnsy commented Jan 20, 2016

A consistently formatted information output and simplified display is needed for all template output commands.

For example, the canvas template pull command will attempt to download/install/remove packages based on the template. To do this it uses the dnf python extensions to download and perform transactions.

Currently the MultiFileProgressMeter class (from dnf.cli.progress) is used for download progress on repo and package information. There is no Meter currently used for the transaction method call.

The current mixed output, shown below, shows the inconsistencies between the dnf progress output and existing canvas outputs including:

  • leading case sensitivities
  • message type prefixes (eg. info, debug)

The mixed output format looks like:

[13:01 firnsy .../upstream/client (unittest u=)]$ sudo PYTHONPATH=./lib ./canvas template pull test01
info: analysing system ...
Fedora 23 - x86_64                                                                      374 kB/s |  43 MB     01:57    
info: preparing transaction ...
Package gitk-2.4.3-7.fc22.noarch is already installed, skipping.
Package google-chrome-stable-47.0.2526.106-1.x86_64 is already installed, skipping.
Package mock-1.2.14-1.fc22.noarch is already installed, skipping.
Package synergy-1.6.2-1.fc22.x86_64 is already installed, skipping.
info: resolving actions ...
info: downloading ...
(1/3): keepassx-0.4.3-13.fc23.x86_64.rpm                                                247 kB/s | 829 kB     00:03    
(2/3): geany-libgeany-1.25-4.fc23.x86_64.rpm                                            266 kB/s | 1.0 MB     00:03    
(3/3): geany-1.25-4.fc23.x86_64.rpm                                                     461 kB/s | 2.8 MB     00:06    
info: completing ...
info: syncing history ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant