Skip to content

Commit

Permalink
Add escape function
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Oct 20, 2023
1 parent 1833edf commit 358142b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions PwshSpectreConsole/public/PwshSpectreConsole.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,14 @@ function Format-SpectreBarChart {
}
}

function Get-SpectreEscapedText {
param (
[Parameter(ValueFromPipeline)]
[string] $Text
)
return [Spectre.Console.Markup]::Escape($Text)
}

function Format-SpectreBreakdownChart {
param (
[Parameter(ValueFromPipeline)]
Expand Down

0 comments on commit 358142b

Please sign in to comment.