def keep.write

ezx@1.11.0.0 · src/ws/relock.bend:128

import ezx@1.11.0.0/src/ws/relock.bend as Relock
import 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}

Uses (4)

Used by (1)