Normalized result of running a Beancount check.
A Result is engine-agnostic: the CLI engine and any future native engine
populate the same struct so callers never need to special-case the backend.
Fields:
:status-:okwhen the ledger is valid,:errorotherwise.:exit_status- the raw process exit status (nilfor non-process engines).:stdout- captured standard output (CLI engines merge stderr here).:stderr- unused; kept for struct symmetry. CLI output is merged into:stdoutviastderr_to_stdout: true.:normalized- engine-independent, structured view of the output produced byBeancount.Normalizer.
Summary
Types
@type status() :: :ok | :error
@type t() :: %Beancount.Result{ exit_status: non_neg_integer() | nil, normalized: map(), status: status() | nil, stderr: binary(), stdout: binary() }