Documentation
¶
Overview ¶
Package template provides directory name template processing functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor handles template processing for worktree path generation.
func (*Processor) GeneratePath ¶
func (p *Processor) GeneratePath(baseDir string, repoInfo *url.RepositoryInfo, branch string) (string, error)
GeneratePath generates a worktree path using the configured template.
type TemplateData ¶
type TemplateData struct {
Host string // e.g., "github.com"
Owner string // e.g., "user1"
Repository string // e.g., "myapp"
Branch string // e.g., "feature/new-ui"
Hash string // Short hash of the repository URL + branch
}
TemplateData contains the data available for template processing.
Click to show internal directories.
Click to hide internal directories.