def due

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

import ezx@1.11.0.0/src/init/plan.bend as Plan
import Base

156# whether the stub is written: nothing is at the entry, so `ez init` does not
157# overwrite the program, and the entry is not ez.toml or `.gitignore`, so the
158# stub is not written over the file this plan just wrote there
159def due(got: Maybe<&2, String>, +at: String) -> Bool:
160  match got:
161    case Some{_s}:
162      False{}
163    case None{}:
164      Bool.not(Bool.or(String.eq(at, toml()), String.eq(at, ignore.file())))

Uses (8)

Used by (1)