def locked.of
import ezx@1.11.0.0/src/doctor/plan.bend as Planimport Base
import ezx@1.11.0.0/src/toml/toml.bend as T
183# the lock's text, read
184def locked.of(got: Maybe<&2, String>) -> Locked:
185 match got:
186 case None{}:
187 Unlocked{}
188 case Some{text}:
189 locked.parsed(T.parse(text))