mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-30 14:40:39 -08:00
feat(cli):improve anilist interfaces api
This commit is contained in:
@@ -20,7 +20,12 @@ def clear():
|
||||
def fuzzy_inquirer(prompt: str, choices, **kwargs):
|
||||
clear()
|
||||
action = inquirer.fuzzy(
|
||||
prompt, choices, height="100%", border=True, **kwargs
|
||||
prompt,
|
||||
choices,
|
||||
height="100%",
|
||||
border=True,
|
||||
validate=lambda result: result in choices,
|
||||
**kwargs,
|
||||
).execute()
|
||||
return action
|
||||
|
||||
|
||||
Reference in New Issue
Block a user