PoshCode / Pansies

Powershell ANSI Escape Sequences, functions for colored output, etc.
MIT License
146 stars 14 forks source link

Hide Get-GradientColor Verbose output behind some option #13

Closed powercode closed 3 years ago

powercode commented 5 years ago

Since Get-Gradient is called from the prompt function, it gets very noisy when $VerbosePreference is enabled.

When a user that isn't debugging Pansies enables VerbosePreference, they likely aren't interested in the pansies


    Write-Verbose "Size: $('{0:N2}' -f $Size) ($Width x $Height) ($($Colors.Length) x $($Colors[0].Length))"
    Write-Verbose "Diff: {$StepSize}"
    Write-Verbose "From: {$Left} $($StartColor.Ordinals)"
    Write-Verbose "To:   {$Right} $($EndColor.Ordinals)"
```.

How about using some setting in the module to hide/enable this output?
Jaykul commented 3 years ago

Refactored into C# so that's gone