def import.line
import ezx@1.11.0.0/src/git/git.bend as Gitimport Base
import ezx@1.11.0.0/src/pkg/path.bend as P
257# the import line a consumer writes for a package: the hash, the entry's path
258# inside the package, which is where the hub serves it, and the entry's name
259# as the alias, the way bend prints it. `ez add` and `ez publish` both print
260# this line.
261def import.line(+hash: String, +at: String) -> String:
262 "import " ++ hash ++ "/" ++ at ++ " as " ++ title(P.unbend(P.base(at)))