Live.read_text: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/daemon/live.bend as Live Lines 87-89 of cswap-bend-cli@0.1.0.0/daemon/live.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/daemon/live.bend&start_line=87&end_line=89 import Base import cswap-bend-cli@0.1.0.0/fs.bend as Fs # settings.json as text; "" when it cannot be read. def read_text(+root: String) -> IO(String): IO.bind(Fs.Res(String), String, Fs.read_file(root ++ "/settings.json"), r => IO.pure(String, text_of(r))) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/live.bend&name=text_of https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fs.bend&name=Res https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fs.bend&name=read_file