def perform
import bolt@1.26.0.0/main.bend as Boltimport Base
import bolt@1.26.0.0/src/args.bend as Args
import bolt@1.26.0.0/src/stop.bend as Stop
34# what a parsed line does, done
35def perform(oo: Args.Out) -> IO(Unit): # noqa: L001 IO driver
36 match oo:
37 case Args.Stop{to, text, code}:
38 do IO<Unit>:
39 Stop.say(to, text)
40 Stop.leave(code)
41 case Args.Go{cmd, paths}:
42 dispatch(cmd, paths)