From 4c35ef13f016ca35361798660b93882195241ae6 Mon Sep 17 00:00:00 2001 From: Sharun <715417+sharunkumar@users.noreply.github.com> Date: Mon, 5 Jun 2023 08:43:23 -0400 Subject: [PATCH] added ArgumentCompleter for lyrics_stat param (#430) * added ArgumentCompleter for lyrics_stat param * formatting --- Install.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Install.ps1 b/Install.ps1 index 762c0c1..20d0b4f 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -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.')]