ARCHIVED: Using $PSStyle instead.
A module that allows you to define the colour of your text as part of your output string. Saving you from multiple calls to Write-Host to build up a single line of text.
Everyone loves coloured text, it makes reading things easier, highlights important information and impresses your users (hopefully).
I found writing coloured text in PowerShell to be tedious. Certainly once you get past the phase of having a single line of colour and want to start having coloured elements in your lines.
I wrote this module to scratch that itch.
The module uses the token !(fg,bg)
to indicate color changes in a string.
Where fg
is the foreground colour and bg
is the background colour.
The colors are limited to the [ConsoleColor]
type.
It supports a number of permutations.