PureStorage-OpenConnect / flashblade-powershell-toolkit

Windows PowerShell Module for Pure Storage FlashBlade
Apache License 2.0
2 stars 3 forks source link

Replace Write-Host with Write-Verbose on function execution. #1

Closed cadayton closed 4 years ago

cadayton commented 4 years ago

I created a branch with the fixes, but was denied committing the branch.

This fix allows the caller to decide whether the generated output is desired by including the -verbose option on the function call.

Write-Host ("Running function: {0} " -f $MyInvocation.MyCommand); Write-Host '---------------------------------------------------';

TO

Write-Verbose ("Running function: {0} " -f $MyInvocation.MyCommand); Write-Verbose '---------------------------------------------------';

kiwistorageguy commented 4 years ago

Craig, I cant see your branch for some reason. I do have an updated version that only shows the module name if debug is on. If I updated the master with this version, would you like to try that?

cadayton commented 4 years ago

Hi Alex, Sure I can clone your updated version.

When I attempted push my branch, it gave a permission error. So makes sense you couldn't see my branch.

Thanks.

Craig Dayton cadayton@protonmail.com 360-466-8778 paypal.me/CraigDayton

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Sunday, February 23, 2020 2:13 AM, Alex Johnson notifications@github.com wrote:

Craig, I cant see your branch for some reason. I do have an updated version that only shows the module name if debug is on. If I updated the master with this version, would you like to try that?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.