def anchor.at

ezx@1.11.0.0 · src/pkg/path.bend:192

import ezx@1.11.0.0/src/pkg/path.bend as Path
import 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)

Uses (5)

Used by (1)