Documentation
¶
Overview ¶
Package preview provides orchestration logic for the 'devx preview' command. It manages isolated PR sandbox environments using git worktrees, namespaced database containers, and per-sandbox tunnel configurations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sandbox ¶
type Sandbox struct {
PRNumber int
BranchName string
WorktreeDir string
ProjectName string // namespace prefix for containers (e.g., "pr-42")
TunnelName string // derived from project name
LocalBranch string // local tracking branch (e.g., "devx-pr-42")
// contains filtered or unexported fields
}
Sandbox holds all state for an isolated PR preview environment.
func (*Sandbox) Run ¶
Run starts `devx up` inside the worktree with the project override. It blocks until the subprocess exits or the context is cancelled.
Click to show internal directories.
Click to hide internal directories.