def decide.name

ezx@1.11.0.0 · src/tool/plan.bend:925

import ezx@1.11.0.0/src/tool/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/tool/world.bend as TW

925# a name that could not name a file is refused
926def decide.name(ok: Bool, +world: TW.World) -> Verdict:
927  match ok:
928    case True{}:
929      decide.file(file.asks(world), world)
930    case False{}:
931      Stop{"ez: " ++ label(world) ++ name.what(world) ++ name.raw(world) ++
932        ", which is not a TOML bare key"}

Uses (9)

Used by (1)