Repository navigation
0.3
What's new
exec: run commands inside a worktree from the main repo
worktree-bootstrap feature/x test # shorthand
worktree-bootstrap exec feature/x runserver # explicit form
worktree-bootstrap exec feature/x # list presets + aliasesCommands run with the worktree as cwd, its .env exported, and its .venv/bin / vendor/bin / node_modules/.bin on PATH. Exit codes propagate — composes with scripts, CI, and coding agents driving many worktrees in parallel.
Resolution order:
.wtbs/<name>preset script (Django-management-command style; worktree checkout shadows the main repo's). Extra args arrive as"$@"; the template context is exported asWTBS_*env vars (WTBS_PORT_SERVE,WTBS_DB_NAME,WTBS_SITE, …) instead of template rendering, and trailing CR is stripped socore.autocrlf=truecheckouts can't corrupt presets.aliases:one-liners in.worktree-bootstrap.yml, rendered with the same template tokens ascommands.*; extra args appended.- Raw command run verbatim (still template-rendered).
Other changes
- For
exec/shorthand, global flags (--dry-run,--main-repo,--config) must come before the worktree name; everything after passes through verbatim. - README: project vision ("make worktrees as convenient as working in the parent project") and the agentic parallel-development use case.
- Examples and built-in defaults scrubbed of project-specific details:
examples/pixalink.yml→ genericlaravel.yml,archive/removed,copy_from_maindefaults to just.env,name_prefixdefault changedexplore_→wt_. - 15 new bats tests; full suite green (94/94).
Full Changelog: v0.2.0...v0.3.0