public/Get-Negative.ps1
function Get-Negative { <# .SYNOPSIS Apply VT-100 modifiers to a string to format it in negative. .PARAMETER Value The string to format. .OUTPUTS The formatted string (with VT-100 modifiers). #> param ( [Parameter(ValueFromPipeline = $true)] [string] $Value ) process { Get-FormattedText ` -Value $Value ` -PreModifier $script:TEXT_NEGATIVE ` -PostModifier $script:TEXT_NO_NEGATIVE } } |