topicop

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package topicop coordinates command-level topic selection over static or live current-state authority.

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, gate Gate) (presentation.Detail, error)

Run validates syntax before state inspection, then selects static or live authority and returns the owner-produced semantic presentation detail.

Types

type Gate

type Gate func(context.Context, string) error

Gate validates the selected live command universe.

type Input

type Input struct {
	Selector             string
	References, Coverage bool
}

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

type LeaseAcquirer added in v0.50.0

type LeaseAcquirer func(context.Context, string) (*filesystem.Lease, func() error, error)

LeaseAcquirer is the narrow mechanism seam used by focused lease tests.

type LoadProject

type LoadProject func(context.Context, string) (*project.Session, error)

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

type Outcome added in v0.46.0

type Outcome struct {
	Document presentation.Document
	Created  []string
}

Outcome retains the semantic document and authored paths created by this run.

func Create

func Create(ctx context.Context, root, domain, title string, loader *project.Loader, acquire LeaseAcquirer) (outcome Outcome, returnErr error)

Create acquires the selected tracked lease before authority and destination planning, then creates each missing intended source exclusively. Exact files from an earlier interrupted run are accepted; differing collisions are not.

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