mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-12 07:40:41 -08:00
feat(cli): invoke the default media api on no subcommand
This commit is contained in:
@@ -45,6 +45,7 @@ commands = {
|
||||
@click.group(
|
||||
cls=LazyGroup,
|
||||
root="viu.cli.commands",
|
||||
invoke_without_command=True,
|
||||
lazy_subcommands=commands,
|
||||
context_settings=dict(auto_envvar_prefix=PROJECT_NAME),
|
||||
)
|
||||
@@ -107,3 +108,7 @@ def cli(ctx: click.Context, **options: "Unpack[Options]"):
|
||||
else loader.load(cli_overrides)
|
||||
)
|
||||
ctx.obj = config
|
||||
if ctx.invoked_subcommand is None:
|
||||
from .commands.anilist import cmd
|
||||
|
||||
ctx.invoke(cmd.anilist)
|
||||
|
||||
Reference in New Issue
Block a user