mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-13 20:28:25 +10:00
added ArgumentCompleter for lyrics_stat param (#430)
* added ArgumentCompleter for lyrics_stat param * formatting
This commit is contained in:
@@ -59,6 +59,10 @@ param
|
||||
[switch]$no_shortcut,
|
||||
|
||||
[Parameter(HelpMessage = 'Static color for lyrics.')]
|
||||
[ArgumentCompleter({ param($cmd, $param, $wordToComplete)
|
||||
[array] $validValues = @('default', 'red', 'orange', 'yellow', 'spotify', 'blue', 'purple', 'strawberry', 'pumpkin', 'sandbar', 'radium', 'oceano', 'royal', 'github', 'discord', 'drot', 'forest', 'fresh', 'zing', 'pinkle', 'krux', 'blueberry', 'postlight', 'relish', 'turquoise')
|
||||
$validValues -like "*$wordToComplete*"
|
||||
})]
|
||||
[string]$lyrics_stat,
|
||||
|
||||
[Parameter(HelpMessage = 'Accumulation of track listening history with Goofy.')]
|
||||
|
||||
Reference in New Issue
Block a user