Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Branch ¶
type Branch struct {
// contains filtered or unexported fields
}
func (Branch) GetRootCmd ¶
type PrunePrompter ¶ added in v0.9.6
type PrunePrompter interface {
// ConfirmPrune is called only when there is at least one branch to delete
// or to mark merged, AND the run is not a dry-run.
ConfirmPrune(ctx context.Context, toDelete, toMerge int) (confirmed bool, err error)
}
PrunePrompter resolves the single user-facing decision in the prune flow: whether to proceed with the destructive store mutations after the summary has been printed. The production implementation drives a huh form; the auto-confirm implementation (wired via --yes) returns true unconditionally; the scripted implementation in prune_prompter_test.go returns canned values for tests.
Click to show internal directories.
Click to hide internal directories.