Skip to content

feat: Autodetect ArchML workspace by walking up the filesystem hierarchy#45

Merged
amhellmund merged 2 commits intomainfrom
claude/issue-44-20260301-1525
Mar 1, 2026
Merged

feat: Autodetect ArchML workspace by walking up the filesystem hierarchy#45
amhellmund merged 2 commits intomainfrom
claude/issue-44-20260301-1525

Conversation

@amhellmund
Copy link
Copy Markdown
Owner

Implement a find_workspace_root function that walks up the directory tree from a given start directory until it finds .archml-workspace.yaml, enabling users to run archml commands from any subdirectory of a workspace without specifying its location explicitly.

Updated all four CLI commands (check, serve, sync-remote, update-remote) to use this mechanism. The dead .archml-workspace marker-file check (never created by archml init) is removed.

Closes #44

Generated with Claude Code

github-actions bot and others added 2 commits March 1, 2026 15:36
Implement a `find_workspace_root` function in `workspace/config.py` that
walks up the directory tree from a given start directory until it finds
`.archml-workspace.yaml`, enabling users to run `archml` commands from any
subdirectory of a workspace without specifying its location explicitly.

Updated all four CLI commands (`check`, `serve`, `sync-remote`,
`update-remote`) to call `find_workspace_root` when the workspace config
file is not found at the given directory. The dead `.archml-workspace`
marker-file check in `sync-remote` and `update-remote` (a file never
created by `archml init`) is replaced by this unified detection mechanism.

Added unit tests for `find_workspace_root` and integration tests verifying
that each CLI command can autodetect a workspace located in a parent directory.

Closes #44

Co-authored-by: Andi Hellmund <amhellmund@users.noreply.github.com>
@amhellmund amhellmund merged commit 9e636b5 into main Mar 1, 2026
5 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.

Autodetect archml namespace

1 participant