Skip to content

Conversation

@Bullish-Design
Copy link
Owner

The previous fix (PR #40) only addressed the 'up' command by changing from 'from .up import up' to 'from . import up'. However, all other commands (down, bootstrap, switch, doctor, init) had the same issue.

In cli.py, all commands are used as modules with .run attribute:

  • down.run
  • bootstrap.run
  • switch.run
  • doctor.run
  • init.run

But in commands/init.py, they were imported as functions instead of modules, causing AttributeError: 'function' object has no attribute 'run'

This fix applies the same pattern to all commands consistently by importing them as modules rather than individual functions.

Fixes the error:
AttributeError: 'function' object has no attribute 'run' at devman/cli.py:25 for 'down' and similar errors for other commands.

The previous fix (PR #40) only addressed the 'up' command by changing
from 'from .up import up' to 'from . import up'. However, all other
commands (down, bootstrap, switch, doctor, init) had the same issue.

In cli.py, all commands are used as modules with .run attribute:
- down.run
- bootstrap.run
- switch.run
- doctor.run
- init.run

But in commands/__init__.py, they were imported as functions instead
of modules, causing AttributeError: 'function' object has no attribute 'run'

This fix applies the same pattern to all commands consistently by
importing them as modules rather than individual functions.

Fixes the error:
AttributeError: 'function' object has no attribute 'run'
at devman/cli.py:25 for 'down' and similar errors for other commands.
@Bullish-Design Bullish-Design merged commit d8a302c into main Jan 1, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants