MutagenEx.Pipeline.ReporterOkFacade behaviour (mutagen_ex v0.2.0)

Copy Markdown View Source

Behaviour for the :reporter_ok slot of the Mix.Tasks.Mutagen dispatch table.

Production default: MutagenEx.JsonReporter (its emit_report/1 is the success-shape encoder).

Summary

Callbacks

Encode a success %Report{} into {iodata, exit_code}.

Callbacks

emit_report(report)

@callback emit_report(report :: MutagenEx.JsonReporter.Report.t()) ::
  {iodata(), non_neg_integer()}

Encode a success %Report{} into {iodata, exit_code}.