def says

ezx@1.11.0.0 · src/add/hub.bend:293

import ezx@1.11.0.0/src/add/hub.bend as Hub
import Base
import ezx@1.11.0.0/src/add/world.bend as A
import ezx@1.11.0.0/src/lock/plan.bend as P
import ezx@1.11.0.0/src/pkg/path.bend as Path
import ezx@1.11.0.0/src/git/git.bend as Git

293# the lines a person is told: the hash the name names, then, when there is
294# an entry, the import line for it, the line `ez publish` prints with the
295# name in place of the hash
296def says(+hash: String, +entry: String, +world: A.World) -> List<&2, P.Effect>:
297  Bool.pick(List<&2, P.Effect>, String.is_empty(entry), [P.Say{nv(world) ++ " is " ++ hash}],
298    [P.Say{nv(world) ++ " is " ++ hash}, P.Say{Git.import.line(nv(world), Path.norm(entry))}])

Uses (10)

Used by (1)