def import_ok
cswap-bend-cli@0.1.0.0 · cfgio.bend:290
import cswap-bend-cli@0.1.0.0/cfgio.bend as Cfgio
import Base
import cswap-bend-cli@0.1.0.0/cmd.bend as Cmd
import cswap-bend-cli@0.1.0.0/fs.bend as Fs
import cswap-bend-cli@0.1.0.0/setcmd.bend as Setcmd
290def import_ok(ok: Bool, +err: String, +a: IA, +root: String, noin: Bool, json: Bool, only: Bool) -> IO(Cmd.Out):
291 match ok:
292 case True{}:
293 IO.bind(Fs.Res(Cmd.Out), Cmd.Out, import_act(root, a, noin, json, only), r => IO.pure(Cmd.Out, Setcmd.fin(r)))
294 case False{}:
295 IO.pure(Cmd.Out, Cmd.Out{2, "", "cswap: error: " ++ err ++ "\n"})