def snapshot

cswap-bend-cli@0.1.0.0 · daemon/gather.bend:142

import cswap-bend-cli@0.1.0.0/daemon/gather.bend as Gather
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase
import cswap-bend-cli@0.1.0.0/store/io.bend as SIo

142# Look the whole picture up.
143def snapshot(+ctx: SBase.Ctx) -> Act.of(Maybe<&2, Snap>):
144  do ActM<Maybe<&2, Snap>>:
145    m : Maybe<&2, Json.Json> <- SIo.read_seq(SBase.root_of(ctx))
146    snapshot2(ctx, m)

Uses (10)

Used by (3)