fix: use rattail function to create top-level command
share code in case logic ever changes
This commit is contained in:
parent
abb0e8a344
commit
b12626c09d
|
@ -5,12 +5,12 @@ Corporal 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
|
||||||
corporal_typer = typer.Typer(
|
corporal_typer = make_typer(
|
||||||
callback=typer_callback,
|
name='corporal',
|
||||||
help="Corporal (custom Rattail system)"
|
help="Corporal (custom Rattail system)"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue