Documentation
¶
Overview ¶
Package workspace provides the core domain logic for worktree management. It follows the Repository pattern - one Workspace represents one git repository.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Workspace ¶
type Workspace struct {
Root string // Repository root path
Name string // Repository name (basename of root)
Config *config.Config // WM configuration
UI ui.Prompter // User interaction handler
}
Workspace represents a git repository with WM configuration
func (*Workspace) AddWorktree ¶
AddWorktree creates a new worktree with optional sync and post-install
func (*Workspace) ListWorktrees ¶
ListWorktrees returns all worktrees in this workspace
Click to show internal directories.
Click to hide internal directories.