Skip to content

Commit 1e87cea

Browse files
committed
Fix ImportError: Add missing up() function to up.py
The up.py module was missing the up() function that serves as a backward-compatible alias for run(). This caused an ImportError when the commands/__init__.py tried to import 'up' from the module. Added the up() function following the same pattern used in other command modules (down.py, bootstrap.py) to resolve the import issue. Fixes the traceback: ImportError: cannot import name 'up' from 'devman.commands.up'
1 parent bcca68f commit 1e87cea

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/devman/commands/up.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,8 @@ def _load_nvim_session(config: WorkspaceConfig) -> None:
119119

120120
for command in NVIM.build_session_commands(config.root, session_path):
121121
NVIM.remote_send(config.nvim_listen, command)
122+
123+
124+
def up(root: Path | None = None) -> WorkspaceConfig:
125+
"""Backward-compatible alias for run."""
126+
return run(root=root)

0 commit comments

Comments
 (0)