def live_ident

cswap-bend-cli@0.1.0.0 · collect.bend:66

import cswap-bend-cli@0.1.0.0/collect.bend as Collect
import Base
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/store.bend as Store

66def live_ident(+ctx: SBase.Ctx) -> IO(Store.Ident):
67  IO.bind(String, Store.Ident, read_text(SBase.global_config_path(ctx)), t => IO.pure(Store.Ident, Store.ident_of(Json.unwrap(Json.parse(t)))))

Uses (11)

Used by (2)