commandhost

package
v1.0.90 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package commandhost adapts the public command extension contract to Typed Shortcuts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileDeclaration

func CompileDeclaration(declaration command.Command) (common.Shortcut, error)

CompileDeclaration compiles one declaration into a mountable shortcut without the whole-contribution checks CompileSets performs. Host-side callers that need a compiled command outside a command set use it so they exercise the production compiler rather than a parallel construction path.

func CompileSets

func CompileSets(sets []command.Set) ([]common.Shortcut, error)

CompileSets validates and compiles a complete external contribution without registration.

func ValidateDeclaration

func ValidateDeclaration(declaration command.Command) error

ValidateDeclaration compiles one declaration through the production compiler and discards the result. A business test harness calls it so a wrong tag, Shape or relation fails in the unit test rather than at CLI startup: executing hooks directly exercises none of the compiler's contract checks, which is the gap that let a green test ship a command that cannot mount.

Domain existence and path collisions are deliberately not checked here. Those are properties of a whole contribution and belong to CompileSets, which runs during build.

Types

This section is empty.

Jump to

Keyboard shortcuts

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