Status.write: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/daemon/status.bend as Status Lines 98-100 of cswap-bend-cli@0.1.0.0/daemon/status.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&start_line=98&end_line=100 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json import cswap-bend-cli@0.1.0.0/fs/write.bend as FsW import cswap-bend-cli@0.1.0.0/act.bend as Act # Replace the status file (temp file + rename, 0600). def write(+state_dir: String, s: Status) -> Act.of(Unit): FsW.write_atomic(status_path(state_dir), Json.emit_pretty(to_json(s)), "600") Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/act.bend&name=of https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=Status https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=status_path https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=to_json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fs/write.bend&name=write_atomic https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=emit_pretty