Cli.bash_slot_cases: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 6568-6578 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=6568&end_line=6578 import Base def bash_slot_cases(slots: List<&2, Slot>) -> List<&2, String>: match slots: case Nil{}: Nil{} case Slot{k, False{}, required, many, rest, ph, Words{list, values}} <> tail: String.concat([" ", Nat.show(k), ") ", bash_kind(Words{list, values}, False{}), " ;;"]) <> bash_slot_cases(tail) case Slot{k, False{}, required, many, rest, ph, Files{}} <> tail: String.concat([" ", Nat.show(k), ") kind=f ;;"]) <> bash_slot_cases(tail) case Slot{k, False{}, required, many, rest, ph, Dirs{}} <> tail: String.concat([" ", Nat.show(k), ") kind=d ;;"]) <> bash_slot_cases(tail) case head <> tail: bash_slot_cases(tail) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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.concat https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Comp https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Slot https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=bash_kind