ShaunLawrie / PwshSpectreConsole

👻 PwshSpectreConsole is a PowerShell wrapper for the awesome Spectre.Console library
https://pwshspectreconsole.com/
MIT License
114 stars 7 forks source link

How can I adjust the colors of a Format-SpectrePanel command, or a Format-SpectreTable command? #10

Closed futuremotiondev closed 10 months ago

futuremotiondev commented 11 months ago

https://pwshspectreconsole.com/reference/formatting/format-spectretable/ https://pwshspectreconsole.com/reference/formatting/format-spectrepanel/

Neither show examples on how to customize colors for these elements. Am I missing something?

trackd commented 11 months ago

Both commands have a -Color parameter (in the docs)

Format-SpectrePanel -Data 'testing 123, testing' -Title 'no 1' -Border Heavy -Color Teal

theres autocompletion for all available colors as well. to get a list

([Spectre.Console.Color] | Get-Member -Static -Type Properties).Name