def act.read

cswap-bend-cli@0.1.0.0 · usage/gate.bend:123

import cswap-bend-cli@0.1.0.0/usage/gate.bend as Gate
import Base
import cswap-bend-cli@0.1.0.0/fs.bend as Fs

123def act.read(r: Fs.Res(String), +path: String, +snapshot: String) -> IO(Fs.Res(Gated)):
124  match r:
125    case Fail{e}:
126      done.g(gated.err("transient", None{}))
127    case Done{+text}:
128      act.cur(stored(Done{text}), path, text, snapshot)

Uses (10)

Used by (1)