checkop

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package checkop owns repository-check preparation, ordered use cases, result assembly, and semantic presentation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Leaf

type Leaf uint8

Leaf identifies one resolved repository-check use case after CLI parsing.

const (
	Check Leaf = iota
	Repository
	RepositoryDrift
	RepositoryState
	RepositoryProse
	RepositoryMemory
	Staged
	StagedState
	StagedDrift
)

type Outcome

type Outcome struct {
	Document presentation.Document
	Failure  error
}

Outcome is the immutable semantic result of one repository-check use case. Failure is non-nil only after a complete produced report contains Error findings.

func Run

func Run(ctx context.Context, root string, leaf Leaf) (Outcome, error)

Run prepares and executes exactly one resolved repository-check use case.

Jump to

Keyboard shortcuts

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