Skip to content

Align and Pretty the pkg(8) Output #2576

@vermaden

Description

@vermaden

Right now pkg(8) prints something like that:

Proceed with this action? [y/N]: y
[1/3] Fetching pinentry-gnome-1.3.2~9b9141f953.pkg: 100%   42 KiB  43.0kB/s    00:01    
[2/3] Fetching gnome-keyring-48.0~0b79281525.pkg: 100%  844 KiB 432.0kB/s    00:02    
[3/3] Fetching flare-0.17.5~faf8149743.pkg: 100%    7 MiB 571.7kB/s    00:13    

Why not make it like that one below?

Especially as all packages needed to be fetch and install are known - its its trivial to calculate 1st column widrh.

Proceed with this action? [y/N]: y
[1/3] Fetching pinentry-gnome-1.3.2  100%   42 KiB   43.0kB/s    00:01    
[2/3] Fetching gnome-keyring-48.0    100%  844 KiB  432.0kB/s    00:02    
[3/3] Fetching flare-0.17.5          100%    7 MiB  571.7kB/s    00:13    

Regards,
vermaden

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions