Skip to content

Conversation

@Bullish-Design
Copy link
Owner

Changed the import in commands/init.py from importing the up function to importing the up module. This fixes the AttributeError where cli.py was trying to access up.run but up was a function instead of a module.

Fixes the error:
AttributeError: 'function' object has no attribute 'run'

Changed the import in commands/__init__.py from importing the up
function to importing the up module. This fixes the AttributeError
where cli.py was trying to access up.run but up was a function
instead of a module.

Fixes the error:
AttributeError: 'function' object has no attribute 'run'
@Bullish-Design Bullish-Design merged commit ea68261 into main Jan 1, 2026
0 of 4 checks passed
Bullish-Design pushed a commit that referenced this pull request Jan 1, 2026
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.
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