Write.publish.chmod: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/fs/write.bend as Write Lines 66-71 of cswap-bend-cli@0.1.0.0/fs/write.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/fs/write.bend&start_line=66&end_line=71 import Base import cswap-bend-cli@0.1.0.0/fs.bend as Fs def publish.chmod(r: Fs.Res(Unit), +tmp: String, +path: String, +data: String, +mode: String) -> IO(Fs.Res(Unit)): match r: case Fail{e}: publish.fail(Fail{e}, tmp) case Done{u}: IO.bind(Fs.Res(Unit), Fs.Res(Unit), chmod(mode, tmp), c => publish.put(c, tmp, path, data)) Uses (9): 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=Result 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/fs/write.bend&name=chmod https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fs/write.bend&name=publish.fail https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fs/write.bend&name=publish.put https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/fs.bend&name=Res