added ArgumentCompleter for lyrics_stat param (#430)

* added ArgumentCompleter for lyrics_stat param

* formatting
This commit is contained in:
Sharun
2023-06-05 08:43:23 -04:00
committed by GitHub
parent 9d138fe58a
commit 4c35ef13f0

View File

@@ -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.')]