Commit 627f488
committed
Fix import inconsistencies for all 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.1 parent ea68261 commit 627f488
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments