mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-30 22:50:45 -08:00
feat:switch to poetry as build tool and package manager
This commit is contained in:
25
fastanime/cli/interfaces/anime_interface.py
Normal file
25
fastanime/cli/interfaces/anime_interface.py
Normal file
@@ -0,0 +1,25 @@
|
||||
import rich
|
||||
from ..utils.fzf import fzf
|
||||
from . import (
|
||||
info_interface,
|
||||
stream_interface,
|
||||
binge_interface,
|
||||
download_interface,
|
||||
watchlist_interface,
|
||||
bye,
|
||||
)
|
||||
|
||||
options = {
|
||||
"info": info_interface,
|
||||
"stream": stream_interface,
|
||||
"binge": binge_interface,
|
||||
"download": download_interface,
|
||||
"watchlist": watchlist_interface,
|
||||
"quit": bye,
|
||||
}
|
||||
|
||||
|
||||
def anime_interface(anime):
|
||||
command = fzf(options.keys())
|
||||
if command:
|
||||
options[command](anime, options)
|
||||
Reference in New Issue
Block a user