From c73260badbba51bf6ddf76b0a6b8b9eaaca23e4a Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Thu, 13 Feb 2025 16:14:08 -0500 Subject: [PATCH] feat(commands): add c as alias for current --- commands/utils.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/commands/utils.py b/commands/utils.py index ca501bd..0b2c744 100644 --- a/commands/utils.py +++ b/commands/utils.py @@ -30,10 +30,13 @@ class Command(Enum): @lru_cache def match_token(token: str) -> list[Command]: - if token.lower() == "r": - return [Command.RELOAD] - elif token.lower() == "s": - return [Command.SKIP] + match token.lower(): + case "r": + return [Command.RELOAD] + case "s": + return [Command.SKIP] + case "c": + return [Command.CURRENT] if exact_match := list( filter(