def decide.slug

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

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

991# a slug that could leave the cache is refused (EZ-TOOL-8)
992def decide.slug(ok: Bool, +url: String, +world: TW.World) -> Verdict:
993  match ok:
994    case True{}:
995      decide.head(src(world), url, world)
996    case False{}:
997      Stop{"ez: not a repository"}

Uses (6)

Used by (1)