Skip to main content

Module check

Module check 

Source
Expand description

haz check subcommand.

Loads the discovered workspace through the full DISC / CFG / REF / DAG pipeline (AUX-010), accumulating every detected error via the per-phase accumulators (LoadErrors, LoadOverlayErrors, BuildErrors, …). On success, emits a single line of the form <N> task(s) validated. to stdout (AUX-011) and returns exit code 0 (AUX-012). On failure, propagates the typed diagnostic up to the binary, which renders it to stderr and exits with the internal-or-configuration-error class.

The candidate set whose size enters the count line is determined per AUX-009:

  • --workspace: every task in every project, regardless of cwd.
  • --all + bearing project: the bearing project’s effective task set.
  • --all + no bearing project: every task in every project.
  • No scope flag + bearing project: the bearing project’s effective task set.
  • No scope flag + no bearing project: every task in every project.

Functions§

execute
Execute the haz check subcommand against the supplied Context.