def act.read
import cswap-bend-cli@0.1.0.0/usage/gate.bend as Gateimport 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)