|
19 | 19 | rich_markup_mode="rich"
|
20 | 20 | )
|
21 | 21 |
|
22 |
| -# Add commands to the main app |
23 |
| -main.add_typer(init_command, name="init") |
24 |
| -main.add_typer(logout_command, name="logout") |
25 |
| -main.add_typer(login_command, name="login") |
26 |
| -main.add_typer(profile_command, name="profile") |
27 |
| -main.add_typer(style_debug_command, name="style-debug") |
28 |
| -main.add_typer(update_command, name="update") |
| 22 | +# Import the actual command functions |
| 23 | +from codegen.cli.commands.init.main import init |
| 24 | +from codegen.cli.commands.login.main import login |
| 25 | +from codegen.cli.commands.logout.main import logout |
| 26 | +from codegen.cli.commands.profile.main import profile |
| 27 | +from codegen.cli.commands.style_debug.main import style_debug |
| 28 | +from codegen.cli.commands.update.main import update |
| 29 | + |
| 30 | +# Add individual commands to the main app |
| 31 | +main.command("init")(init) |
| 32 | +main.command("login")(login) |
| 33 | +main.command("logout")(logout) |
| 34 | +main.command("profile")(profile) |
| 35 | +main.command("style-debug")(style_debug) |
| 36 | +main.command("update")(update) |
| 37 | + |
| 38 | +# Config is a group, so add it as a typer |
29 | 39 | main.add_typer(config_command, name="config")
|
30 | 40 |
|
31 | 41 |
|
|
0 commit comments