public/Copy-GlyTheme.ps1
|
function Copy-GlyTheme { [CmdletBinding()] param( [Parameter(Mandatory, Position = 0)] [string] $Name, [Parameter(Mandatory, Position = 1)] [string] $NewName ) if (-not $script:GlyThemes.Contains($Name)) { throw "Unknown gly theme '$Name'." } $copy = ConvertTo-GlyTheme -Theme (Get-GlyThemeRegistryEntry -Name $Name) $copy.Name = $NewName $copy.BuiltIn = $false $copy } |