From cbb5174ac88011f622506a1bc9f16c2cc315eb49 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 1 Jul 2024 11:54:04 -0500 Subject: [PATCH] fix: use rattail function to create top-level command share code in case logic ever changes --- rattail_demo/commands.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)" )