Documentation
¶
Overview ¶
Package untrack implements the stackit untrack command for stopping branch tracking.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler interface {
// PromptConfirmUntrackDescendants prompts user to confirm untracking descendants
// Returns true to proceed with untracking all descendants, false to cancel
PromptConfirmUntrackDescendants(branchName string, descendantCount int) (bool, error)
// Cleanup restores terminal state (may be no-op)
Cleanup()
// IsInteractive returns true if the handler supports interactive prompts
IsInteractive() bool
}
Handler receives events from untrack action
type NullHandler ¶
NullHandler is a no-op handler for when nil is passed
func (*NullHandler) PromptConfirmUntrackDescendants ¶
func (h *NullHandler) PromptConfirmUntrackDescendants(_ string, _ int) (bool, error)
PromptConfirmUntrackDescendants implements Handler. Returns false (cancel) for null handler. Use --force flag to untrack descendants without confirmation.
Click to show internal directories.
Click to hide internal directories.