fix: use rattail function to create top-level command
share code in case logic ever changes
This commit is contained in:
parent
81689fe597
commit
ecb6f27a16
|
@ -26,12 +26,12 @@ Theo commands
|
||||||
|
|
||||||
import typer
|
import typer
|
||||||
|
|
||||||
from rattail.commands.typer import typer_callback
|
from rattail.commands.typer import make_typer
|
||||||
|
|
||||||
|
|
||||||
# nb. this is the top-level command for corporal
|
# nb. this is the top-level command for corporal
|
||||||
theo_typer = typer.Typer(
|
theo_typer = make_typer(
|
||||||
callback=typer_callback,
|
name='theo',
|
||||||
help="Theo, the order system"
|
help="Theo, the order system"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue