Commit b746cb0
authored
🩹 [Patch]: Update argument completer to support
## Description
This pull request includes changes to the PowerShell scripts for font
management. The most important changes involve the consolidation of
argument completers and the removal of redundant code.
Consolidation of argument completers:
*
[`src/functions/completers.ps1`](diffhunk://#diff-d85ead11500a80fca764d18c8480b383cdd0ae75862f268d0d4b4b997b27674bR1-R9):
Added a new argument completer for the `Uninstall-Font` and `Get-Font`
commands to handle the `Name` parameter. This script block checks the
`Scope` parameter and filters font names based on the user's input.
Removal of redundant code:
*
[`src/functions/public/Uninstall-Font.ps1`](diffhunk://#diff-2bda15615bb104b972c42d08b28af0a1692cbb5ec229ae212fc5959feab71f49L136-L145):
Removed the previously defined argument completer for the
`Uninstall-Font` command, as it has been consolidated into the new
script block in `completers.ps1`.
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [ ] 🪲 [Fix]
- [ ] 🩹 [Patch]
- [ ] Get-Font (#36)1 parent 4842af1 commit b746cb0
2 files changed
Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
0 commit comments