Swrun.backup_outgoing: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/swrun.bend as Swrun Lines 40-56 of cswap-bend-cli@0.1.0.0/swrun.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/swrun.bend&start_line=40&end_line=56 import Base import cswap-bend-cli@0.1.0.0/act.bend as Act import cswap-bend-cli@0.1.0.0/swcreds.bend as C import cswap-bend-cli@0.1.0.0/store/io.bend as SIo # The outgoing account's backup, by what the live credential is. def backup_outgoing(+k: C.CKind, +root: String, +cur: String, +email: String, +creds: String, +cfg_text: String) -> Act.of(Unit): match k: case C.KOwnBytes{}: SIo.write_config(root, cur, email, cfg_text) case C.KWiped{}: SIo.write_config(root, cur, email, cfg_text) case C.KForeignSynced{s}: Act.pure(Unit, Unit{}) case C.KForeign{s}: Act.pure(Unit, Unit{}) case C.KAlien{}: Act.pure(Unit, Unit{}) case _: do ActM: SIo.write_cred(root, cur, email, creds) SIo.write_config(root, cur, email, cfg_text) Uses (9): 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/act.bend&name=pure https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/store/io.bend&name=write_config https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/store/io.bend&name=write_cred https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/swcreds.bend&name=CKind https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/swrun.bend&name=ActM https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/swrun.bend&name=ActM.bind