From 95551a3038c409fd5669ea160541c7cfb3482794 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 1 Jul 2024 11:55:44 -0500 Subject: [PATCH] fix: use rattail function to create top-level command share code in case logic ever changes --- wuttapos/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wuttapos/commands.py b/wuttapos/commands.py index 684c943..54dfd19 100644 --- a/wuttapos/commands.py +++ b/wuttapos/commands.py @@ -29,14 +29,14 @@ import logging import typer from rattail.files import resource_path -from rattail.commands.typer import typer_callback +from rattail.commands.typer import make_typer log = logging.getLogger(__name__) -wuttapos_typer = typer.Typer( - callback=typer_callback, +wuttapos_typer = make_typer( + name='wuttapos', help="WuttaPOS (point of sale)" )