Versions in this module Expand all Collapse all v0 v0.17.15 May 11, 2026 v0.17.14 May 11, 2026 Changes in this version + func Action(ctx *app.Context, opts Options, handler Handler) error + func HasFlattenWork(ctx *app.Context, opts Options) (bool, error) + type AnalysisProgressFunc func(current, total int, branchName string) + type ExcludedBranch struct + Branch string + Reason string + type Handler interface + Cleanup func() + Complete func(result Result) + IsInteractive func() bool + OnBranchMoved func(branch, oldParent, newParent string) + OnStep func(step Step, status basehandler.StepStatus, message string) + OnValidationProgress func(current, total int, branchName string) + PromptConfirmFlatten func(preview Preview) (bool, error) + Start func(branchCount int) + type NullHandler struct + func (h *NullHandler) Complete(Result) + func (h *NullHandler) OnBranchMoved(string, string, string) + func (h *NullHandler) OnValidationProgress(int, int, string) + func (h *NullHandler) PromptConfirmFlatten(Preview) (bool, error) + func (h *NullHandler) Start(int) + type Options struct + BranchName string + SkipConfirm bool + type PlannedMove struct + Branch string + NewParent string + OldParent string + type Preview struct + ExcludedBranches []ExcludedBranch + Moves []PlannedMove + UnchangedCount int + type Result struct + MovedCount int + UnchangedCount int + type Step string + const StepAnalyzing + const StepFlattening + const StepRestacking + const StepValidating