def conf.find
bolt@1.27.0.0 · src/lint/plan.bend:512
import bolt@1.27.0.0/src/lint/plan.bend as Plan
import Base
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy
import bolt@1.27.0.0/src/lint/world.bend as W
import bolt@1.27.0.0/src/config.bend as Config
512
513
514
515def conf.find(cs: List<&2, Conf>, +world: W.World, +dir: String) -> Config.Config:
516 match cs:
517 case Nil{}:
518 conf.near(world, dir)
519 case Con{Conf{d, cfg}, rest}:
520 Lazy.stop(Config.Config, String.eq(d, dir), cfg, _u => conf.find(rest, world, dir))