Documentation
¶
Overview ¶
Package topicop coordinates command-level topic selection over static or live current-state authority.
Index ¶
- func CreateLeased(ctx context.Context, root, domain, title string, loader *project.Loader, ...) (document presentation.Document, err error)
- func Run(ctx context.Context, root string, input Input, load LoadProject, gate Gate) (presentation.Detail, error)
- type Gate
- type Input
- type LoadProject
- type PartialScaffoldError
- type UsageError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLeased ¶ added in v0.41.0
func CreateLeased(ctx context.Context, root, domain, title string, loader *project.Loader, lease *filesystem.Lease) (document presentation.Document, err error)
CreateLeased opens the selected project and performs one topic-scaffolding operation under a caller-held tracked transaction.
Types ¶
type LoadProject ¶
type LoadProject func(context.Context, string) (*project.ProjectState, *config.Config, *awfgit.Repo, error)
LoadProject opens the command-selected project inputs as immutable state.
type PartialScaffoldError ¶ added in v0.41.0
type PartialScaffoldError struct {
Created, Removed, Remaining []string
Cause error
Recovery []string
}
PartialScaffoldError retains rollback facts when a topic creation cannot remove every path it created. Cause identity remains available to callers.
func (*PartialScaffoldError) Document ¶ added in v0.41.0
func (e *PartialScaffoldError) Document() (presentation.Document, error)
func (*PartialScaffoldError) Error ¶ added in v0.41.0
func (e *PartialScaffoldError) Error() string
func (*PartialScaffoldError) Unwrap ¶ added in v0.41.0
func (e *PartialScaffoldError) Unwrap() error
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.
Click to show internal directories.
Click to hide internal directories.