Skip to content

Commit

Permalink
Update Install-NerdFont to use 'ByName' parameter set for font instal…
Browse files Browse the repository at this point in the history
…lation
  • Loading branch information
MariusStorhaug committed Jan 12, 2025
1 parent 6cf3073 commit e963210
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/functions/public/Install-NerdFont.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,25 @@ function Install-NerdFont {
Installs all Nerd Fonts to the current user.
#>
[CmdletBinding(
DefaultParameterSetName = 'Name',
DefaultParameterSetName = 'ByName',
SupportsShouldProcess
)]
[Alias('Install-NerdFonts')]
param(
# Specify the name of the Nerd font(s) to install.
[Parameter(
ParameterSetName = 'ByName',
Mandatory,
ValueFromPipeline,
ValueFromPipelineByPropertyName
)]
[string[]] $Name,

# Specify to install all Nerd Font(s).
[Parameter(ParameterSetName = 'All', Mandatory)]
[Parameter(
ParameterSetName = 'All',
Mandatory
)]
[switch] $All,

# Specify the scope of where to install the font(s).
Expand Down

0 comments on commit e963210

Please sign in to comment.