Cli.zsh_commands: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 6829-6840 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=6829&end_line=6840 import Base def zsh_commands(entries: List<&2, Entry>, with_help: Bool, label: String, +ind: String) -> List<&2, String>: List.concat(&2, String, [ [String.append(ind, "local -a commands=(")], zsh_entries(entries, ind), Bool.pick(List<&2, String>, with_help, [String.append(ind, " 'help:Print this message or the help of the given subcommand(s)'")], []), [String.append(ind, ")"), String.concat([ind, "_describe -t commands ", Sh.quote(label), " commands"])], ]) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.concat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append 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=Entry https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Sh.quote https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=zsh_entries