Cli.sh_list: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 6489-6494 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=6489&end_line=6494 import Base # Words quoted for sh, apart by sep. def sh_list(words: List<&2, String>, +sep: String) -> String: match words: case Nil{}: "" case word <> Nil{}: Sh.quote(word) case word <> tail: String.concat([Sh.quote(word), sep, sh_list(tail, sep)]) 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