Documentation
¶
Overview ¶
Package scope implements the stackit scope command for managing branch scopes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler interface {
// PromptConfirmRename prompts user to confirm branch rename after scope change
// Returns true to proceed with rename, false to skip
PromptConfirmRename(branchName, oldScope, newScope string) (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 scope action
type NullHandler ¶
NullHandler is a no-op handler for when nil is passed. It embeds handler.NullBase for Cleanup() and IsInteractive().
func (*NullHandler) PromptConfirmRename ¶
PromptConfirmRename implements Handler. Returns false (skip rename) for null handler.
Click to show internal directories.
Click to hide internal directories.