Cli.route_call: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 4861-4866 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=4861&end_line=4866 import Base def route_call(-A: Type, bad: Maybe<&2, String>, call: Call(A), m: Matches) -> Dec(A): match bad: case None{}: call(m) case Some{key}: Fail{Bug{String.concat(["route '", key, "' is not a command"])}} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.concat https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Call https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Dec https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Fault https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Matches