def unset.spec

cswap-bend-cli@0.1.0.0 · setcmd.bend:177

import cswap-bend-cli@0.1.0.0/setcmd.bend as Setcmd
import Base
import cswap-bend-cli@0.1.0.0/fs.bend as Fs
import cswap-bend-cli@0.1.0.0/cmd.bend as Cmd
import cswap-bend-cli@0.1.0.0/settings.bend as Settings

177def unset.spec(+root: String, r: Result<&2, &2, String, Settings.Spec>) -> IO(Cmd.Out):
178  match r:
179    case Fail{m}:
180      IO.pure(Cmd.Out, Cmd.fail(m))
181    case Done{sp}:
182      IO.bind(Fs.Res(Cmd.Out), Cmd.Out, unset.act(root, sp), r2 => IO.pure(Cmd.Out, fin(r2)))

Uses (11)

Used by (1)