Cli.zsh_spec_lines: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 6801-6809 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=6801&end_line=6809 import Base # Specs quoted, one per line, all but the last continued. def zsh_spec_lines(specs: List<&2, String>, +ind: String) -> List<&2, String>: match specs: case Nil{}: Nil{} case spec <> Nil{}: [String.concat([ind, " ", Sh.quote(spec)])] case spec <> tail: String.concat([ind, " ", Sh.quote(spec), " \\"]) <> zsh_spec_lines(tail, ind) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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=Sh.quote