def read_text

cswap-bend-cli@0.1.0.0 · daemon/live.bend:87

import cswap-bend-cli@0.1.0.0/daemon/live.bend as Live
import Base
import cswap-bend-cli@0.1.0.0/fs.bend as Fs

87# settings.json as text; "" when it cannot be read.
88def read_text(+root: String) -> IO(String):
89  IO.bind(Fs.Res(String), String, Fs.read_file(root ++ "/settings.json"), r => IO.pure(String, text_of(r)))

Uses (8)

Used by (1)