Cli.bash_scope_arm: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 6526-6535 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=6526&end_line=6535 import Base def bash_scope_arm(stop: Stop) -> List<&2, String>: match stop: case Stop{k, +words, opts, builtins, subs, slots}: String.concat([" ", Sh.quote(String.join(words, " ")), ")"]) <> last_with(List.concat(&2, String, [ [String.concat([" opts=(", sh_list(List.append(&2, String, opt_names(opts), opt_names(builtins)), " "), ")"])], bash_subs(subs, words), bash_shape(variadic(slots)), ]), " ;;") Uses (14): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append 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.concat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.join 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=Stop https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=bash_shape https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=bash_subs https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=last_with https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=opt_names https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=sh_list https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=variadic