canonical / pebble

Pebble is a lightweight Linux service manager with layered configuration and an HTTP API.
https://canonical-pebble.readthedocs-hosted.com/
GNU General Public License v3.0
146 stars 54 forks source link

feat(wait): export cli.Wait function #362

Closed paul-rodriguez closed 7 months ago

paul-rodriguez commented 7 months ago

This commit exports a function to display a progress bar tracking the progress of a change ID. Unlike the wait function which remains unexported, this new function does not require a waitMixin.

Motivation: allow projects that import Pebble and add commands to its CLI to use the same waiting logic and UI.

The unused skipAbort field of the waitMixin has been removed.