def named.put

ezx@1.11.0.0 · src/lock/lock.bend:68

import ezx@1.11.0.0/src/lock/lock.bend as Lock
import Base
import ezx@1.11.0.0/src/pkg/pkg.bend as K

68# an import's `<name>@<version>`, or nothing when it names no package by
69# name. A named import is a dependency, never a module of this project
70# (EZ-HUB-3), whether or not the hub rules its name in.
71def named.put(+spec: String) -> List<&2, String>:
72  +nv = K.named.of(spec)
73  Bool.pick(List<&2, String>, String.is_empty(nv), [], [nv])

Uses (5)

Used by (1)