Line.command: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ez/line.bend as Line Lines 103-124 of ezx@1.11.0.0/src/ez/line.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ez/line.bend&start_line=103&end_line=124 import Base # a subcommand by its path, the words joined with `/`. A path that names no # command, the empty one of a bare `ez` or a group such as `tool`, is `CHelp`. def command(+name: String) -> Sub: Bool.pick(Sub, String.eq(name, "init"), CInit{}, Bool.pick(Sub, String.eq(name, "add"), CAdd{}, Bool.pick(Sub, String.eq(name, "remove"), CRemove{}, Bool.pick(Sub, String.eq(name, "lock"), CLock{}, Bool.pick(Sub, String.eq(name, "fetch"), CFetch{}, Bool.pick(Sub, String.eq(name, "check"), CCheck{}, Bool.pick(Sub, String.eq(name, "build"), CBuild{}, Bool.pick(Sub, String.eq(name, "run"), CRun{}, Bool.pick(Sub, String.eq(name, "publish"), CPublish{}, Bool.pick(Sub, String.eq(name, "test"), CTest{}, Bool.pick(Sub, String.eq(name, "prove"), CProve{}, Bool.pick(Sub, String.eq(name, "doctor"), CDoctor{}, Bool.pick(Sub, String.eq(name, "tool/sync"), CToolSync{}, Bool.pick(Sub, String.eq(name, "tool/run"), CToolRun{}, Bool.pick(Sub, String.eq(name, "tool/install"), CToolInstall{}, Bool.pick(Sub, String.eq(name, "tool/upgrade"), CToolUpgrade{}, CHelp{})))))))))))))))) Uses (4): 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.eq https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/line.bend&name=Sub