Files
FastAnime/fastanime/cli/commands/anilist/cmd.py
2025-07-14 20:09:57 +03:00

28 lines
643 B
Python

import click
from ...interactive.session import session
commands = {
"trending": "trending.trending",
"recent": "recent.recent",
"search": "search.search",
}
@click.command(name="anilist")
@click.option(
"--resume", is_flag=True, help="Resume from the last session (Not yet implemented)."
)
@click.pass_context
def anilist(ctx: click.Context, resume: bool):
"""
The entry point for the 'anilist' command. If no subcommand is invoked,
it launches the interactive TUI mode.
"""
config = ctx.obj
if ctx.invoked_subcommand is None:
session.load_menus_from_folder()
session.run(config)