Skip to content

Commit d981477

Browse files
Fix: Remove reference to non-existent agent module in CLI (#962)
## Description This PR fixes an issue where the CLI is trying to import a non-existent module `codegen.cli.commands.agent.main`. This was causing errors when users tried to run commands like `codegen init` or `codegen update`. ## Changes - Removed the import of `agent_command` from `codegen.cli.commands.agent.main` - Removed the reference to `agent_command` in the `main.add_command` section ## Testing This change should allow users to run basic codegen CLI commands without encountering the `ModuleNotFoundError: No module named 'codegen.cli.commands.agent'` error. ## Related Issues This fixes the issue reported in Slack where a user was unable to run `codegen init` or `codegen update` due to this missing module. Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
1 parent 6c086fe commit d981477

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codegen/cli/cli.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import rich_click as click
22
from rich.traceback import install
33

4-
from codegen.cli.commands.agent.main import agent_command
4+
# Removed reference to non-existent agent module
55
from codegen.cli.commands.config.main import config_command
66
from codegen.cli.commands.create.main import create_command
77
from codegen.cli.commands.deploy.main import deploy_command
@@ -32,7 +32,7 @@ def main():
3232

3333

3434
# Wrap commands with error handler
35-
main.add_command(agent_command)
35+
# Removed reference to non-existent agent_command
3636
main.add_command(init_command)
3737
main.add_command(logout_command)
3838
main.add_command(login_command)

0 commit comments

Comments
 (0)