mix tak.create (tak v0.2.0)
View SourceCreates a git worktree with isolated configuration for Elixir/Phoenix development.
$ mix tak.create <branch-name> [name]
This will:
- Create a git worktree in
trees/<name>/ - Create
config/dev.local.exswith isolated port and database - Create
mise.local.tomlwith PORT env var (if mise is installed) - Run
mix deps.getandmix ecto.setup
Arguments
branch-name- The git branch to create/checkout (required)name- The worktree name (optional, auto-assigned from available names)
Available Names
By default: armstrong, hickey, mccarthy, lovelace, kay, valim
Configure in your config/config.exs:
config :tak, names: ~w(custom names here)Options
--db - Create database (overrides config)
--no-db - Skip database creation (overrides config)Examples
$ mix tak.create feature/login
$ mix tak.create feature/login armstrong
$ mix tak.create feature/login --no-db