def exec.lib

ezx@1.11.0.0 · src/tool/run.bend:189

import ezx@1.11.0.0/src/tool/run.bend as Run
import Base
import snap@1.4.0.0/main.bend as R
import ezx@1.11.0.0/src/fetch/run.bend as FetchRun

189# the library a build reads: an ez project's lock fetched into it as `ez
190# fetch` fetches one, with every relative path in it read from the
191# checkout; a plain repository's made, for bend to fetch its hub imports into
192def exec.lib(fetch: Bool, +top: String, +lib: String) -> IO(Unit):
193  match fetch:
194    case True{}:
195      FetchRun.fill(top, lib)
196    case False{}:
197      do IO<Unit>:
198        _mk : String <- R.exec(["mkdir", "-p", lib])
199        return Unit{}

Uses (9)

Used by (1)