Private/Test-Theme.ps1
function Test-Theme { param( [Parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true)] [ValidateNotNullOrEmpty()] [string] $Name, [Parameter(ValueFromPipelineByPropertyName=$true)] [ValidateNotNullOrEmpty()] [string] $Description, [Parameter(ValueFromPipelineByPropertyName=$true)] [ValidateNotNullOrEmpty()] [string] $Repository, [Parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true)] [ValidateNotNullOrEmpty()] [System.ConsoleColor] $Background, [Parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true)] [ValidateNotNullOrEmpty()] [System.ConsoleColor] $Foreground, [Parameter(Mandatory=$false, ValueFromPipelineByPropertyName=$true)] [ValidateNotNullOrEmpty()] [System.ConsoleColor] $PopupBackground, [Parameter(Mandatory=$false, ValueFromPipelineByPropertyName=$true)] [ValidateNotNullOrEmpty()] [System.ConsoleColor] $PopupForeground, [Parameter(Mandatory=$false, ValueFromPipelineByPropertyName=$true)] [ValidateSet('RGB','BGR')] [string] $PaletteFormat, [Parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true)] [ValidateNotNull()] [System.Object] $Palette, [Parameter(ValueFromPipelineByPropertyName=$true)] [ValidateNotNull()] [PSCustomObject] $Tokens ) Process { $true } } |