Repository navigation
0.2
Summary
Release 0.2 — resolves all nine open issues.
- #1 —
createcreates the branch when it doesn't exist yet (git worktree add -b), with optional--base <ref>and a clear info message - #2 — scriptable DB lifecycle:
database.create/database.dropcommands (rendered with the full template context) replace driver dispatch when present; first-classdriver: nonedisables DB handling silently; unknown drivers fail cleanly instead ofcommand not found - #3 —
create --dry-runrenders the full plan: resolved driver, db name, renderedenv_updates, allocated offset/ports, and every install/build/serve/destroy command — with no side effects (registry untouched) - #4 — global flags accepted in any position (
create --dry-run feature/xworks) - #5 — report reflects what actually happened: skipped DB steps shown as
skipped (<reason>), unreferenced ports grouped as allocated-but-unused;name_prefixdefault documented - #6 — no unconditional Laravel env keys:
APP_PORT/FORWARD_DB_PORT/VITE_PORTonly apply as defaults when noenv_updatesare defined;DB_DATABASEonly written for real drivers - #7 — template context expanded:
{db_name},{worktree_root},{main_repo}, and{env.KEY}references to existing env values (dry-run resolves them against the main repo's.env) - #8 — preflight fails fast when hook scripts referenced in
commands.*/database.*are missing from the worktree checkout - #9 —
destroyrunsgit worktree pruneso branches are deletable immediately; new--delete-branchflag
Tests
- 11 new bats tests (78 total, all passing): flags-in-any-position, full dry-run plan, preflight fail-fast, prune/delete-branch, command-based DB lifecycle,
driver: none, unknown-driver handling, template context,{env.KEY}refs - README and
--helpupdated for all new behavior
Closes #1, closes #2, closes #3, closes #4, closes #5, closes #6, closes #7, closes #8, closes #9