topicop

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: 16 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 Create

func Create(ctx context.Context, root, domain, title string, loader *project.Loader) (presentation.Document, error)

Create opens the selected project and performs one topic-scaffolding operation.

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.

func Scaffold

func Scaffold(root string, cfg *config.Config, domain, title string) (presentation.Document, error)

Scaffold creates one topic's paired authored inputs atomically enough to remove every input and newly-created parent when a later step fails.

Types

type Gate

type Gate func(context.Context, string) error

Gate validates the selected live command universe.

type Input

type Input struct {
	Selector                      string
	History, References, Coverage bool
}

Input is the syntax-level topic 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