ngetchell / PSGitLab

An interface for administering GitLab from the PowerShell command line.
MIT License
72 stars 42 forks source link

Disable Invoke-WebRequest Progress Bar to Remove Flickering Bar #183

Closed X-Guardian closed 6 years ago

X-Guardian commented 6 years ago

For each GitLab API call, the Invoke-WebRequest command displays a progress bar, which for a lot of calls, is only displayed for a fraction of a second. For a paginated call, multiple short-lived progress bars are displayed one after the other causing an annoying flickering on the PowerShell window.

I don't think these progress bars are useful, so suggest disabling them by setting the $ProgressPreference variable to SilentlyContinue during the Invoke-WebRequest calls as shown in this PR.

X-Guardian commented 6 years ago

Cheers @ngetchell. Are you planning to publish a new release to the PowerShell gallery?