def co.fresh

ezx@1.11.0.0 · src/tool/plan.bend:450

import ezx@1.11.0.0/src/tool/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/tool/world.bend as TW
import ezx@1.11.0.0/src/lock/up.bend as Up

450# the cached checkout is this commit and finished, or it is cloned again
451def co.fresh(fresh: Bool, +url: String, +world: TW.World) -> Co:
452  match fresh:
453    case True{}:
454      Kept{read.got(world, top(world) ++ "/ez.toml"), read.got(world, top(world) ++ "/ez.lock.toml")}
455    case False{}:
456      co.clone(Up.heard(TW.ups(world), clone.ask(world, url)), clone.ask(world, url))

Uses (11)

Used by (1)