fix: use rattail function to create top-level command

share code in case logic ever changes
This commit is contained in:
Lance Edgar 2024-07-01 11:55:44 -05:00
parent 96a571b5d0
commit 95551a3038

View file

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