diff --git a/rattail_demo/commands.py b/rattail_demo/commands.py index 30cc967..d408b22 100644 --- a/rattail_demo/commands.py +++ b/rattail_demo/commands.py @@ -11,7 +11,7 @@ import shutil import typer from typing_extensions import Annotated -from rattail.commands.typer import (typer_callback, typer_get_runas_user, +from rattail.commands.typer import (make_typer, typer_get_runas_user, importer_command, file_exporter_command) from rattail.commands.importing import ImportCommandHandler from rattail.commands.purging import run_purge @@ -19,9 +19,9 @@ from rattail.commands.purging import run_purge log = logging.getLogger(__name__) -# nb. this is the top-level command for titeship -rattail_demo_typer = typer.Typer( - callback=typer_callback, +# nb. this is the top-level command +rattail_demo_typer = make_typer( + name='rattail_demo', help="Rattail Demo (custom Rattail system)" )