def keep.write
import ezx@1.11.0.0/src/ws/relock.bend as Relockimport Base
import ezx@1.11.0.0/src/lock/plan.bend as LP
128# a file the command writes, once it is known whether it is the ledger
129def keep.write(hit: Bool, +old: String, +path: String, +text: String) -> LP.Effect:
130 match hit:
131 case True{}:
132 LP.Write{path, keep(old, text)}
133 case False{}:
134 LP.Write{path, text}