Documentation
¶
Overview ¶
Package installer runs a worktree's install step: either a user-supplied list of commands, or an auto-detected JS package manager's install command based on lockfiles present. It also detects a suggested install command for other ecosystems (Go, Python, Java, Rust, Ruby, PHP, .NET) for `wt init` to write into .wt.toml — those don't get run automatically, since each build tool already fetches its own dependencies lazily.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Install ¶
Install runs the worktree's install step in dir. If commands is non-empty, each entry is run in order through the shell (so entries can use shell syntax like "&&" or pipes), stopping at the first failure. Otherwise it falls back to detecting a JS package manager from dir's lockfile. It's a no-op (with a status line) if commands is empty and no known lockfile is present.
Types ¶
This section is empty.