def sync

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

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/io/file.bend as F
import ezx@1.11.0.0/src/tool/world.bend as TW
import ezx@1.11.0.0/src/tool/plan.bend as TP

371# `ez tool sync`: every pin the ledger names, installed at its lock rev
372def sync() -> IO(Unit):
373  do IO<Unit>:
374    +pwd : String <- R.exec(["pwd"])
375    +vars : TW.Env <- env()
376    +bend : String <- bend.is()
377    +led : Maybe<&2, String> <- F.read("ez.toml")
378    +lock : Maybe<&2, String> <- F.read("ez.lock.toml")
379    sync.go(TP.sync(led, lock), String.trim(R.text(pwd)), vars, bend, led, lock)

Uses (15)

Used by (1)