def lock

ezx@1.11.0.0 · src/ws/hop.bend:104

import ezx@1.11.0.0/src/ws/hop.bend as Hop
import Base
import ezx@1.11.0.0/src/ws/root.bend as R

104# the lock a command run in a directory reads: the root's, which is the only
105# one a workspace has, or its own in a project of its own and at the root
106def lock(+top: String, found: R.Found) -> String:
107  match found:
108    case R.Alone{}:
109      "ez.lock.toml"
110    case R.Within{root, rel}:
111      lock.within(top, root, rel)
112    case R.Broken{_why}:
113      "ez.lock.toml"

Uses (3)

Used by (1)