stepFor method
Returns the command template for action on osName, or null if the
action is unsupported on that platform.
Implementation
@override
CommandStep? stepFor(FormulaAction action, String osName) {
if (action == FormulaAction.verify) return verifyStep;
return switch (osName) {
'linux' => _linuxStep(action),
'macos' => _brewStep(action),
// An OS with no packaging story here. `install` never reaches this when
// the commands are already present — the base class short-circuits on a
// passing verify — so what is reported is the truth: not supported here.
_ => null,
};
}