diff --git a/PwshSpectreConsole/public/demo/Get-SpectreDemoFeatures.ps1 b/PwshSpectreConsole/public/demo/Get-SpectreDemoFeatures.ps1 index db60ff7..0d907e7 100644 --- a/PwshSpectreConsole/public/demo/Get-SpectreDemoFeatures.ps1 +++ b/PwshSpectreConsole/public/demo/Get-SpectreDemoFeatures.ps1 @@ -9,8 +9,10 @@ Get-SpectreDemoFeatures #> function Get-SpectreDemoFeatures { + [Reflection.AssemblyMetadata("title", "Get-SpectreDemoFeatures")] + param () - $demoWidth = $Host.UI.RawUI.BufferSize.Width + $demoWidth = Get-HostWidth $title = Write-SpectreHost "[underline][yellow]Spectre.Console[/][silver] Features[/][/]" -PassThru | Format-SpectreAligned -VerticalAlignment Middle $titleTable = Format-SpectreTable -Data @{