a8m / a8m/pb

Add support for setting/changing total after creation

Offen
#43 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
600
Forks
59
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

In some cases, like HTTP downloads (see [`progress_function`](https://docs.rs/curl/0.4.4/curl/easy/struct.Easy.html#method.progress_function) in libcurl for example), you may not know the size of the download until after you have been in touch with the remote server. But you may still want to create the progress bar to show that things are happening. Once the connection is established, and the `Content-Length` header has been received, the total for the progress bar can be set, and progress can be logged.

It'd be great if `pb` offered a way to create a new, "indeterminate" progress bar, and then allow for the total to be set *afterwards*.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.