statusFrom method

FormulaStatus statusFrom(
  1. ExecResult result
)

Maps a statusStepFor probe's outcome to a status.

The default reads a zero exit as running and anything else as stopped, which is what a well-behaved … info or … is-active probe reports. Override where a tool distinguishes "not running" from "broken".

Implementation

FormulaStatus statusFrom(ExecResult result) =>
    result.ok ? FormulaStatus.running : FormulaStatus.stopped;