Cli.zsh_cmd: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 6956-6968 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=6956&end_line=6968 import Base # The body at ind of the command with items and globals at words, given # the arms of its subcommands. def zsh_cmd(+items: List<&2, Item>, +globals: List<&2, Item>, +lists: List<&2, List<&2, String>>, name: String, +words: List<&2, String>, arms: List<&2, String>, ind: String) -> List<&2, String>: zsh_body(sub_entries(items), List.append(&2, String, zsh_opts(List.append(&2, Opt, arg_opts(items, lists), arg_opts(globals, lists))), zsh_opts(builtin_opts(items, globals, List.is_empty(&2, String, words)))), items, lists, name, words, arms, ind) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.is_empty https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Item https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Opt https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=arg_opts https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=builtin_opts https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=sub_entries https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=zsh_body https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=zsh_opts