def pick_mode
import cswap-bend-cli@0.1.0.0/tui/run.bend as Runimport Base
import cswap-bend-cli@0.1.0.0/tui/model.bend as M
199def pick_mode(+once: Bool, +v: M.View, +version: String, +root: String, +state: String, +secs: U32) -> IO(Unit):
200 match once:
201 case True{}:
202 once_frame(v, version, root, state)
203 case False{}:
204 forever(v, version, root, state, secs)