def abs

bolt@1.27.0.0 · src/lint/plan.bend:169

import bolt@1.27.0.0/src/lint/plan.bend as Plan
import Base
import bolt@1.27.0.0/src/rules/imports.bend as Imports

169# a path as the one file it names wherever it is spelled from: resolved
170# against the working directory when relative, then normalized
171# (src/rules/imports.bend), so `a.bend`, `./a.bend` and `/w/a.bend` run
172# from `/w` are one
173def abs(+cwd: String, +path: String) -> String:
174  Imports.norm(Bool.pick(String, String.starts_with(path, "/"), path, cwd ++ "/" ++ path))

Uses (5)

Used by (4)