Ends.lock.flags: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ez/ends.bend as Ends Lines 21-25 of ezx@1.11.0.0/src/ez/ends.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ez/ends.bend&start_line=21&end_line=25 import Base import ezx@1.11.0.0/src/lock/plan.bend as P # `ez lock --package NAME` without `--upgrade` is a line ez refuses before it # reads anything, since `--package` only filters an upgrade def lock.flags(up: Bool, +name: String) -> P.Outcome: Bool.pick(P.Outcome, Bool.or(up, String.is_empty(name)), P.Success{}, P.Refused{"ez: --package needs --upgrade"}) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_empty https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/plan.bend&name=Outcome