feat(cli): invoke the default media api on no subcommand

This commit is contained in:
Benexl
2025-08-16 16:32:07 +03:00
parent 26de1a0fb4
commit 6a6e03c744

View File

@@ -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)