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 loweringpub fn all_metadata()— collectsCommandMetafrom all declarations plusall_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§
- Assert
Target - First-argument target for
ASSERT_EQ/ASSERT_CONTAINS. - Step
Kind
Functions§
- all_
metadata - all_
structural_ metadata - lower_
command - lower_
env_ assignment - Canonical
lower_commandentry for direct callers holding one pre-joinedKEY=valuetoken. Script parsing never reaches this — the grammar splits assignments on raw spans first (seelower_env_commandin parser.rs).