fallow-report-protocol 3.42.0

Language-neutral report contract shared by the fallow CLIs
Documentation

fallow-report-protocol

This crate holds the report contract that the fallow command-line tools share. A tool that emits a fallow report uses these types, so all reports have the same shape.

The crate contains:

  • ErrorOutput: the JSON error document that a command writes to stdout when it fails with --format json.
  • GateOutcome, GateStatus, GateFile and GateFileReason: the verdict of one gate on one run.
  • GateOutcomes<K>: the verdict of every gate of one run, keyed by gate name. Each tool supplies its own key type. fallow-output uses GateOutcomes<GateName>.
  • exit_code: the process exit codes of the contract. fallow-cli reads EXIT_OK, EXIT_GATE_FAILED and EXIT_INVALID_INPUT from this module.
  • REPORT_PROTOCOL_VERSION: the version of the wire contract. No fallow report writes this value yet. It is for tools that consume this crate.

The crate version follows the fallow release. The wire version is REPORT_PROTOCOL_VERSION, not the crate version.

Enable the schema feature to derive schemars::JsonSchema for each type.

The crate depends on no other fallow crate and on no JavaScript type.

License

MIT