def anchor.path

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

import ezx@1.11.0.0/src/pkg/path.bend as Path
import Base

183# an absolute path, or a `git@` URL, as it is, or a relative path taken from
184# `here`
185def anchor.path(kept: Bool, +here: String, +path: String) -> String:
186  match kept:
187    case True{}:
188      path
189    case False{}:
190      join(here, path)

Uses (3)

Used by (1)