-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGet-WTColorScheme.ps1
36 lines (34 loc) · 944 Bytes
/
Get-WTColorScheme.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
32
33
34
35
36
function Get-WTColorScheme
{
<#
.Synopsis
Gets Windows Terminal Color Schemes
.Description
Gets one or more Windows Terminal Color Schemes from the profile
.Example
Get-WTColorScheme # Gets all color schemes
.Example
Get-WTColorScheme 'Jackie Brown' # Gets the color scheme 'Jackie Brown'
.Link
Add-WTColorScheme
.Link
New-WTColorScheme
#>
[OutputType([PSObject])]
param(
# The name of the color scheme.
[Parameter(ValueFromPipelineByPropertyName)]
[Alias('Name')]
[string[]]
$ColorScheme
)
process {
#region Get Color Scheme
if (-not $PSBoundParameters.ColorScheme) # If no color scheme was provided
{
$PSBoundParameters['ColorScheme'] = '*'# default to all
}
Get-WTProfile @PSBoundParameters # call Get-WTProfile
#endregion Get Color Scheme
}
}