def tree.told

ezx@1.11.0.0 · src/pub/plan.bend:380

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

380# a file the walk asked for, added to what it is given: its text, or gone
381# when there is none
382def tree.told(got: TW.Answer, +path: String, rest: K.Tree) -> K.Tree:
383  match got:
384    case TW.Plain{m}:
385      K.tree.add(m, rest, path)
386    case _:
387      K.tree.gone(rest, path)

Uses (5)

Used by (1)