shenwei356 / rush

A cross-platform command-line tool for executing jobs in parallel
https://github.com/shenwei356/rush
MIT License
846 stars 63 forks source link

Please Update the new feature of progress bar #37

Closed 0xhunster closed 1 year ago

0xhunster commented 3 years ago

Hi there, I hope you are doing well. Rush is a seriously very good script for parallel jobs/works. Many features in there. It would be great if there was a progress bar. It would be nice to see how many lines worked. This feature included an Interlace script. (https://github.com/codingo/Interlace) This feature really awesome. Do you have any plans to do that?

15608

shenwei356 commented 1 year ago

https://github.com/shenwei356/rush/pull/39

shenwei356 commented 1 year ago

https://github.com/shenwei356/rush/releases/tag/v0.5.0

0xhunster commented 1 year ago

Thanks for the update. but all result shows after the progress bar, which is very disturbing, Sometimes the results are broken and not understood. Please change that, So that all results show above the progress bar.

image

shenwei356 commented 1 year ago

The process bar is outputted to STDERR, which could be mixed with output from STDOUT.

So you can either write results to a file:

seq 10 | rush -j 1 'echo {}; sleep 1'  --eta > result.txt

Or redirect the progress bar to a log file.

seq 10 | rush -j 1 'echo {}; sleep 1'  --eta 2> progress.txt

During the running, you can check progress.txt in another terminal.

less progress.txt