def anchor.at
import ezx@1.11.0.0/src/pkg/path.bend as Pathimport Base
192# a URL as it is, or a path
193def anchor.at(url: Bool, +here: String, +path: String) -> String:
194 match url:
195 case True{}:
196 path
197 case False{}:
198 anchor.path(Bool.or(String.starts_with(path, "/"),
199 String.starts_with(path, "git@")), here, path)