|
1 | 1 | import typer |
2 | 2 | from rich.traceback import install |
3 | 3 |
|
4 | | -# Removed reference to non-existent agent module |
| 4 | +# Import config command (still a Typer app) |
5 | 5 | from codegen.cli.commands.config.main import config_command |
6 | | -from codegen.cli.commands.init.main import init_command |
7 | | -from codegen.cli.commands.login.main import login_command |
8 | | -from codegen.cli.commands.logout.main import logout_command |
9 | | -from codegen.cli.commands.profile.main import profile_command |
10 | | -from codegen.cli.commands.style_debug.main import style_debug_command |
11 | | -from codegen.cli.commands.update.main import update_command |
12 | 6 |
|
13 | 7 | install(show_locals=True) |
14 | 8 |
|
|
28 | 22 | from codegen.cli.commands.update.main import update |
29 | 23 |
|
30 | 24 | # 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) |
| 25 | +main.command("init", help="Initialize or update the Codegen folder.")(init) |
| 26 | +main.command("login", help="Store authentication token.")(login) |
| 27 | +main.command("logout", help="Clear stored authentication token.")(logout) |
| 28 | +main.command("profile", help="Display information about the currently authenticated user.")(profile) |
| 29 | +main.command("style-debug", help="Debug command to visualize CLI styling (spinners, etc).")(style_debug) |
| 30 | +main.command("update", help="Update Codegen to the latest or specified version")(update) |
37 | 31 |
|
38 | 32 | # Config is a group, so add it as a typer |
39 | 33 | main.add_typer(config_command, name="config") |
|
0 commit comments