Cli.help.cmd_width: def of shake@0.7.0.0 Import: import shake@0.7.0.0/src/cli.bend as Cli Lines 1895-1901 of shake@0.7.0.0/src/cli.bend: https://jend.leeeet.dev/read.txt?path=shake@0.7.0.0/src/cli.bend&start_line=1895&end_line=1901 import Base # max command-name width, including `help` def help.cmd_width(subs: List<&2, Sub>, nn: Nat) -> Nat: match subs: case Nil{}: help.max(nn, String.length("help")) case Con{+h, t}: help.cmd_width(t, help.max(nn, String.length(help.sub_name(h)))) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.length https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=Sub https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=help.max https://jend.leeeet.dev/definition.txt?path=shake@0.7.0.0/src/cli.bend&name=help.sub_name