canonical / craft-cli

https://canonical-craft-cli.readthedocs-hosted.com/en/latest/
GNU Lesser General Public License v3.0
9 stars 15 forks source link

Allow to show the current progress in the window titlebar #159

Open sergio-costas opened 1 year ago

sergio-costas commented 1 year ago

When building a snap with several parts using -v, it's usually not possible to know which part is being built due to the long text output. An idea (with a much-to-be-desired proposal here: https://github.com/snapcore/snapcraft/pull/4217 ) would be to allow to show the progress text in the window titlebar, by using the ANSI codes for that.

A proposal would be to add a new boolean named parameter to the progress method, that, when set to True, will not only show the string in the screen, but also set it as the window title.

These are some ideas for that named parameter:

sergio-costas commented 1 year ago

@tigarmo I made a proposal implementation in https://github.com/canonical/craft-cli/pull/160