Documentation
¶
Overview ¶
Package devcontainer provides devcontainer detection functionality for worktree operations.
Index ¶
- type Detector
- type PreWorktreeCreationHook
- func (h *PreWorktreeCreationHook) Execute(_ *hooks.HookContext) error
- func (h *PreWorktreeCreationHook) Name() string
- func (h *PreWorktreeCreationHook) OnPreWorktreeCreation(ctx *hooks.HookContext) error
- func (h *PreWorktreeCreationHook) Priority() int
- func (h *PreWorktreeCreationHook) RegisterForOperations(registerHook func(operation string, hook hooks.PreWorktreeCreationHook) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector provides devcontainer detection functionality.
func NewDetector ¶
NewDetector creates a new Detector instance.
type PreWorktreeCreationHook ¶
type PreWorktreeCreationHook struct {
// contains filtered or unexported fields
}
PreWorktreeCreationHook provides devcontainer detection as a pre-worktree creation hook.
func NewPreWorktreeCreationHook ¶
func NewPreWorktreeCreationHook() *PreWorktreeCreationHook
NewPreWorktreeCreationHook creates a new devcontainer PreWorktreeCreationHook instance.
func (*PreWorktreeCreationHook) Execute ¶
func (h *PreWorktreeCreationHook) Execute(_ *hooks.HookContext) error
Execute is a no-op for PreWorktreeCreationHook.
func (*PreWorktreeCreationHook) Name ¶
func (h *PreWorktreeCreationHook) Name() string
Name returns the hook name.
func (*PreWorktreeCreationHook) OnPreWorktreeCreation ¶
func (h *PreWorktreeCreationHook) OnPreWorktreeCreation(ctx *hooks.HookContext) error
OnPreWorktreeCreation handles devcontainer detection before worktree creation.
func (*PreWorktreeCreationHook) Priority ¶
func (h *PreWorktreeCreationHook) Priority() int
Priority returns the hook priority.
func (*PreWorktreeCreationHook) RegisterForOperations ¶
func (h *PreWorktreeCreationHook) RegisterForOperations( registerHook func(operation string, hook hooks.PreWorktreeCreationHook) error, ) error
RegisterForOperations registers this hook for worktree operations.