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
|
@lru_cache
|
||||||
def match_token(token: str) -> list[Command]:
|
def match_token(token: str) -> list[Command]:
|
||||||
if token.lower() == "r":
|
match token.lower():
|
||||||
|
case "r":
|
||||||
return [Command.RELOAD]
|
return [Command.RELOAD]
|
||||||
elif token.lower() == "s":
|
case "s":
|
||||||
return [Command.SKIP]
|
return [Command.SKIP]
|
||||||
|
case "c":
|
||||||
|
return [Command.CURRENT]
|
||||||
|
|
||||||
if exact_match := list(
|
if exact_match := list(
|
||||||
filter(
|
filter(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user