def task_of
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkgimport Base
import ezx@1.11.0.0/src/pkg/path.bend as P
459# a module import as the file to visit next, or nothing when it names a hub
460# package, by its `0x` name or by its `<name>@<version>`
461def task_of(+dir: String, +nd: String, +spec: String) -> List<&2, Task>:
462 Bool.pick(List<&2, Task>, Bool.or(is_hub(spec), is_named(spec)), [],
463 [Task{P.join(dir, spec), P.unbend(P.join(nd, spec))}])