G-Node / gin-cli

Command line client for GIN
https://gin.g-node.org
Other
12 stars 6 forks source link

Progress bars for file operations #203

Closed achilleas-k closed 6 years ago

achilleas-k commented 6 years ago

This PR is prints a progress bar for operations where a per-file rate and progress is not possible.

Affected operations

When any of these operations is being performed, a progress bar is printed which displays the progress of the overall operation and the filecount. See attached image for a demonstration.

asciicast

Internally, in order to create the progress, before each operation, some precalculation is performed to figure out the number of files that will be affected. This overhead is small and I think is acceptable in order to have a progress indicator.

Closes #173.