Available on crate feature
surface-model only.Expand description
Clap-derived operator metadata and validation.
Clap remains the command grammar. Surface extracts the stable operator
view used by committed skills, installed instructions, and contract tests.
Rendering with minijinja is separately gated behind surface-templates.
Structs§
- Surface
- Operator-facing projection of one Clap command graph.
- Surface
Argument - One positional argument or flag in a
Surface. - Surface
Command - One command in a
Surface.
Enums§
- Surface
Requirement - Whether Clap requires an argument.
- Surface
Scope - How far Clap propagates an argument.
Constants§
- COMMANDS_
FRAGMENT surface-templates - Shared fragment that renders the visible top-level Clap commands.
- INVOCATION_
FRAGMENT surface-templates - Shared fragment that renders mounted invocations and the no-
--rule. - VERSION_
FRAGMENT surface-templates - Shared fragment that renders a skill frontmatter version line.
Functions§
- add_
fragments surface-templates - Add ctl-core’s shared operator fragments to an existing environment.
- environment
surface-templates - Create a strict
Environmentcontaining the shared fragments. - render
surface-templates - Render one operator template with a
Surfaceand consumer-owned context.