public/Get-StrikeThrough.ps1
function Get-StrikeThrough { <# .SYNOPSIS Apply VT-100 modifiers to a string to format it in strikethrough. .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_STRIKETHROUGH ` -PostModifier $script:TEXT_NO_STRIKETHROUGH } } |