dalgibbard / citrix_xenserver_patcher

Auto / Manual Patching tool for Citrix XenServer Boxes
Do What The F*ck You Want To Public License
142 stars 45 forks source link

option to not display progress? #67

Closed ThisGuyCodes closed 7 years ago

ThisGuyCodes commented 7 years ago

I'm attempting to run this in an automated fashion and I find the progress output is pretty verbose when displayed by tools, here's a sample:

[99.49%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139821056  [99.50%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139829248  [99.50%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139837440  [99.51%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139845632  [99.51%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139853824  [99.52%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139862016  [99.53%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139870208  [99.53%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139878400  [99.54%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139886592  [99.54%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139894784  [99.55%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139902976  [99.55%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139911168  [99.56%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139919360  [99.57%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139927552  [99.57%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139935744  [99.58%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139943936  [99.58%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139952128  [99.59%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139960320  [99.60%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139968512  [99.60%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b  139976704  [99.61%]\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 139984896

I think you get the idea.

Could there be/is there an option to not display progress? Or display it in a manner that doesn't overwrite the existing line (preferably also with less frequency)?

dalgibbard commented 7 years ago

Pushed change to enable flag -q to enable 'quietness' b9ae93b

It's in the master branch, can you test and confirm? For now it's just quiet on download progress, but would be fairly trivial to:

dalgibbard commented 7 years ago

Commit 968c9cf fixes this.

ThisGuyCodes commented 7 years ago

Awesome! Sorry for the late response, but this works great!

dalgibbard commented 7 years ago

Cool :) thanks for the feedback