def ctx_env

cswap-bend-cli@0.1.0.0 · store.bend:355

import cswap-bend-cli@0.1.0.0/store.bend as Store
import Base
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase

355# Ctx from $HOME and $CLAUDE_CONFIG_DIR.
356def ctx_env() -> IO(SBase.Ctx):
357  IO.bind(String, SBase.Ctx, IO.try(String, IO.get_env("HOME")),
358    h => IO.bind(Result<&1, &1, U32 & String, String>, SBase.Ctx, IO.get_env("CLAUDE_CONFIG_DIR"), r => ctx_with(h, r)))

Uses (10)

Used by (2)