def fits

ezx@1.11.0.0 · src/init/plan.bend:215

import ezx@1.11.0.0/src/init/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/ledger/render.bend as Rend
import ezx@1.11.0.0/src/pub/blurb.bend as B

215# whether a new project can be written: its ledger reads back (EZ-LED-4),
216# and the line its entry opens with is one line, so the description cannot
217# spill into the program
218def fits(+name: String, +at: String, +desc: String) -> Bool:
219  Bool.and(Rend.renderable(model(name, at)), Bool.not(B.has.nl(header(name, desc))))

Uses (8)

Used by (1)