feat(commands): add c as alias for current
This commit is contained in:
parent
2645f33940
commit
c73260badb
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user