public/macro/Format-ConfluenceStatusMacro.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
function Format-ConfluenceStatusMacro { [CmdletBinding()] param ( # Color to make the macro [Parameter(Mandatory,Position=0)] [string] $Color, # The text to display [Parameter(Mandatory,Position=1)] [string] $Text, # Set this flag to use outline style instead of the filled in style [Parameter()] [switch] $OutlineStyle ) begin { } process { (New-Object PowerConfluenceStatusMacro @($Color,$Text,$OutlineStyle)).ToString() } end { } } |