def lock
import ezx@1.11.0.0/src/ws/hop.bend as Hopimport 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"