From b12626c09d2073ff8f16a109e6f5d18123fb92ad Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 1 Jul 2024 12:02:33 -0500 Subject: [PATCH] fix: use rattail function to create top-level command share code in case logic ever changes --- corporal/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/corporal/commands.py b/corporal/commands.py index f18cbf0..eed93e0 100644 --- a/corporal/commands.py +++ b/corporal/commands.py @@ -5,12 +5,12 @@ Corporal commands 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 -corporal_typer = typer.Typer( - callback=typer_callback, +corporal_typer = make_typer( + name='corporal', help="Corporal (custom Rattail system)" )