resumecommand

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesystemConfig

type FilesystemConfig struct {
	Recovery          recoveryInspector
	Input             io.Reader
	Output            io.Writer
	RawTerminalOutput io.Writer
	DiagnosticOutput  LineOutput
	Logf              func(string, ...any)
}

FilesystemConfig keeps raw terminal detection separate from diagnostic records; the CLI's stderr lock must not hide the underlying terminal file descriptor.

type LineOutput

type LineOutput interface {
	WriteLines(...string)
}

LineOutput commits complete diagnostic records before returning, including prompts.

type Result

type Result uint8

Result is deliberately smaller than the process exit-code space: resume does not own network or snapshot-drift outcomes.

const (
	ResultOK Result = iota + 1
	ResultFailure
	ResultUsage
)

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner owns argument handling, item numbering and terminal confirmation. Engine inventories retain the authority and all recovery decisions.

func NewFilesystemRunner

func NewFilesystemRunner(config FilesystemConfig) Runner

func (Runner) Run

func (runner Runner) Run(ctx context.Context, args []string) Result

Jump to

Keyboard shortcuts

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