Skip to main content

Module commands

Module commands 

Source
Expand description

Single-site command registry for all OxDock commands.

declare_commands! is the sole source of truth. It generates:

  • StepKind enum — all command + structural AST variants
  • pub fn lower_command(name, raw_args) — name-dispatched lowering
  • pub fn all_metadata() — collects CommandMeta from all declarations plus all_structural_metadata() (structural statements are documented through the same pipeline so reference docs cannot drift).

To add a command: add one block inside declare_commands!. To add a structural statement: extend the structural [...] list, all_structural_metadata(), and the structural_metadata_covers_all_structural_kinds tripwire below.

Enums§

AssertTarget
First-argument target for ASSERT_EQ / ASSERT_CONTAINS.
StepKind

Functions§

all_metadata
all_structural_metadata
lower_command
lower_env_assignment
Canonical lower_command entry for direct callers holding one pre-joined KEY=value token. Script parsing never reaches this — the grammar splits assignments on raw spans first (see lower_env_command in parser.rs).