def entry
import ezx@1.11.0.0/src/add/plan.bend as Planimport Base
import ezx@1.11.0.0/src/add/world.bend as A
import ezx@1.11.0.0/src/git/git.bend as Git
290# the entry the package is walked from: the one given, else the checkout's
291# `[package] entry`, else its `bin`, else `main.bend` (EZ-RES-2)
292def entry(+world: A.World) -> String:
293 Bool.pick(String, String.is_empty(A.entry.arg(world)),
294 Git.entry.maybe(tree.toml(world)), A.entry.arg(world))