feat(commands): add c as alias for current

This commit is contained in:
Ryan 2025-02-13 16:14:08 -05:00
parent 2645f33940
commit c73260badb
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -30,10 +30,13 @@ class Command(Enum):
@lru_cache
def match_token(token: str) -> list[Command]:
if token.lower() == "r":
match token.lower():
case "r":
return [Command.RELOAD]
elif token.lower() == "s":
case "s":
return [Command.SKIP]
case "c":
return [Command.CURRENT]
if exact_match := list(
filter(