contextop

package
v0.40.0 Latest Latest
Warning

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

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

Documentation

Overview

Package contextop coordinates command-level context selections over one immutable project universe.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, root string, input Input, load LoadProject, workingGate, stagedGate Gate) ([]byte, error)

Run selects, validates, and queries one context universe. Loading and gate callbacks are concrete command-composed dependencies; delivery remains above this operation at the CLI boundary.

Types

type Gate

type Gate func(context.Context, string) error

Gate validates the selected working or staged command universe.

type Input

type Input struct {
	Paths     []string
	Staged    bool
	Range     string
	Uncovered bool
	Full      bool
	Shows     []string
}

Input is the syntax-level context selection supplied by the command parser.

type LoadProject

LoadProject opens the command-selected project inputs as immutable state.

type UsageError

type UsageError struct{ Message string }

UsageError identifies an operation-level syntax refusal for command exit mapping.

func (*UsageError) Error

func (e *UsageError) Error() string

Error returns the syntax refusal message.

Jump to

Keyboard shortcuts

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