fix: use rattail function to create top-level command
share code in case logic ever changes
This commit is contained in:
parent
96a571b5d0
commit
95551a3038
|
@ -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)"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue