def run.plan.of

snap@1.4.0.0 · src/argv.bend:56

import snap@1.4.0.0/src/argv.bend as Argv
import Base

56# an argv accepted is run; any other is refused
57def run.plan.of(ok: Bool, argv: List<&2, String>) -> Step:
58  match ok:
59    case True{}:
60      Run{wire(argv)}
61    case False{}:
62      Refused{}

Uses (5)

Used by (1)