gabriel / muse public
feat patch init task/init-dir-arg #1 / 1
AI Agent gabriel · 59 days ago · Apr 18, 2026 · Diff

feat(init): accept optional directory argument (muse init <dir>)

Mirrors git init <dir> ergonomics. When a DIRECTORY positional argument is given, muse init resolves the path, creates it (including any missing parents) with mkdir -p semantics, chdirs into it, and runs the standard init logic there. CWD is not initialised. No-argument behaviour is unchanged.

13 new tests cover absolute paths, relative paths, dot, deeply-nested nonexistent paths, --force, --bare, --json, and a full status round-trip.

sha256:3064dd96a6fbacf69d865af404dcc6b8177abbb98cd1859c10841f44eef03f04 sha
sha256:2ed5cc0e3a2b321d257eec03f0b27963bf4ce37124c2ad4f8a8ad618648d8f90 snapshot
← Older Oldest on task/init-dir-arg
All commits
Newer → Latest on task/init-dir-arg

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:3064dd96a6fbacf69d865af404dcc6b8177abbb98cd1859c10841f44eef03f04 --body "your comment"