From 7f34722abf2ce7ee96fbee996880d01b46d90a77 Mon Sep 17 00:00:00 2001 From: Shaun Lawrie Date: Sun, 1 Sep 2024 01:42:57 +1200 Subject: [PATCH] Fix docs generator --- PwshSpectreConsole/public/demo/Get-SpectreDemoFeatures.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @{