feat: no command defaults to show all

This commit is contained in:
Johann Dreo 2023-07-28 22:51:33 +02:00
commit e8c37e6bcb

View file

@ -102,7 +102,7 @@ def check_id(context, param, value):
# Global group holding global options.
@click.group()
@click.group(invoke_without_command=True)
# Core options.
@click.option(
'-c', '--config',
@ -164,6 +164,9 @@ def cli(context, **kwargs):
context.obj['debug'] = kwargs['debug']
if not context.invoked_subcommand:
context.invoke(show)
@cli.command()
@click.argument('TID', required=False, type=int, is_eager=True, callback=check_id)