Help us shape the future of Go! Take the 2026 Go Developer Survey

orphans

package
v0.30.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package orphans asks what becomes of the children a removal leaves behind, for clean and prune alike.

Index

Constants

View Source
const (
	Reparent = "reparent"
	Orphan   = "orphan"
)

Variables

This section is empty.

Functions

func Preset

func Preset(reparentChildren bool) string

Preset answers the step from --reparent-children, so the decision is not asked and every reader sees the same answer.

func RecapLine

func RecapLine(params RecapLineParams) string

func Step

func Step(params StepParams) flow.Step

Types

type RecapLineParams

type RecapLineParams struct {
	Moves    []domain.ReparentResult
	Reparent bool
}

type StepParams

type StepParams struct {
	Key   string
	Moves func(flow.Answers) []domain.ReparentResult
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL