Skip to content

Add new ENV variable to make it easier to parse the progresses#211

Merged
folbricht merged 1 commit intofolbricht:masterfrom
RyuzakiKK:progressbar
Jan 20, 2022
Merged

Add new ENV variable to make it easier to parse the progresses#211
folbricht merged 1 commit intofolbricht:masterfrom
RyuzakiKK:progressbar

Conversation

@RyuzakiKK
Copy link
Copy Markdown
Contributor

Introduce a new environment variable DESYNC_ENABLE_PARSABLE_PROGRESS
that allows us to print in output the progress without the progress bar.

This will make it easier to parse the current completion percentage, and
estimated remaining time, without flooding the journal, or where the
stderr was redirected, with very frequent updates that contain long
progress bars.


In theory I could have reused the same DESYNC_PROGRESSBAR_ENABLED, but I didn't want to change behavior in case other people were already parsing its output. Also an env var called "progressbar enabled" that doesn't actually print a progress bar was probably too awkward.

Introduce a new environment variable `DESYNC_ENABLE_PARSABLE_PROGRESS`
that allows us to print in output the progress without the progress bar.

This will make it easier to parse the current completion percentage, and
estimated remaining time, without flooding the journal, or where the
stderr was redirected, with very frequent updates that contain long
progress bars.

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
@folbricht
Copy link
Copy Markdown
Owner

Thank you

@folbricht folbricht merged commit f4ee2b1 into folbricht:master Jan 20, 2022
@RyuzakiKK RyuzakiKK deleted the progressbar branch January 20, 2022 08:38
JeremieA pushed a commit to InSimo/desync that referenced this pull request Apr 10, 2026
…icht#211)

Introduce a new environment variable `DESYNC_ENABLE_PARSABLE_PROGRESS`
that allows us to print in output the progress without the progress bar.

This will make it easier to parse the current completion percentage, and
estimated remaining time, without flooding the journal, or where the
stderr was redirected, with very frequent updates that contain long
progress bars.

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants