Cli.fish_lines: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 7210-7221 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=7210&end_line=7221 import Base def fish_lines(stops: List<&2, Stop>, +pre: String, +id: String) -> List<&2, String>: match stops: case Nil{}: Nil{} case Stop{k, words, opts, builtins, subs, slots} <> tail: +at = String.append(pre, Nat.show(k)) List.concat(&2, String, [ fish_opt_lines(opts, at, id), fish_builtin_lines(builtins, at, " n h"), fish_ends(subs, at, id, slots), fish_lines(tail, pre, id), ]) 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=List.concat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.show 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=cli@0.2.0.0/cli.bend&name=Stop https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=fish_builtin_lines https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=fish_ends https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=fish_opt_lines