[CLI] Make a Loading Bar #15

Open
opened 2020-01-31 00:10:00 +00:00 by SethFalco · 0 comments
SethFalco commented 2020-01-31 00:10:00 +00:00 (Migrated from gitlab.com)

Feature Request

Description

We need a loading bar, so we can see how much progress has been made.

Motivation

Currently, unless Trace or Debug logs are enabled, it's impossible to see if ImageCaster has crashed, or is working.
We should have a loading bar displayed, so we can see how much progress has been made.

Interface

It doesn't have to be anything interactive, it can just drop a log between every input image and print the new progress
as a percentage, loading bar depending on CLI width, and an ETA based on the past few images.

...
30 / 62 (48%) [||||||||||||||||-------------------] ETA 4m33s
31 / 62 (50%) [|||||||||||||||||------------------] ETA 4m30s
33 / 62 (53%) [||||||||||||||||||-----------------] ETA 4m27s
...

It could also have a cool down to avoid spam, which can be configurable via CLI so it only shows a new print every 15 seconds instead of spamming if they get done quickly.

# Feature Request <!-- This is for requesting new features, or improvements/additions to existing features. This is pre-filled with example values, feel free to remove them before populating the template. If you feel a heading is irrelevant, just remove it. --> ## Description <!-- Explain what this is about, try to use full sentences, and make your point clear. --> We need a loading bar, so we can see how much progress has been made. ## Motivation <!-- Why is this a feature that should be implemented in ImageCaster? --> Currently, unless Trace or Debug logs are enabled, it's impossible to see if ImageCaster has crashed, or is working. We should have a loading bar displayed, so we can see how much progress has been made. ## Interface <!-- In some cases you may wish to propose an interface to help describe how you'd want to use this, or for others to discuss and improve ahead of time before final implementation. --> It doesn't have to be anything interactive, it can just drop a log between every **input** image and print the new progress as a percentage, loading bar depending on CLI width, and an ETA based on the past few images. ``` ... 30 / 62 (48%) [||||||||||||||||-------------------] ETA 4m33s 31 / 62 (50%) [|||||||||||||||||------------------] ETA 4m30s 33 / 62 (53%) [||||||||||||||||||-----------------] ETA 4m27s ... ``` It could also have a cool down to avoid spam, which can be configurable via CLI so it only shows a new print every 15 seconds instead of spamming if they get done quickly.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
SethFalco/imagecaster#15
No description provided.