def read_live
cswap-bend-cli@0.1.0.0 · swlive.bend:103
import cswap-bend-cli@0.1.0.0/swlive.bend as Swlive
import Base
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
103def read_live(+ctx: SBase.Ctx) -> Act.of(Live):
104 do ActM<Live>:
105 +cfg_text : Maybe<&2, String> <- read_text_opt(SBase.global_config_path(ctx))
106 creds_text : Maybe<&2, String> <- read_text_opt(SBase.live_creds_path(ctx))
107 return Live{cfg_text, parse_text(cfg_text), creds_text}