def fish_ends
import cli@0.2.0.0/cli.bend as Cliimport Base
7202def fish_ends(subs: List<&2, Entry>, +at: String, id: String,
7203 slots: List<&2, Slot>) -> List<&2, String>:
7204 match subs:
7205 case Nil{}: fish_slot_lines(completing(slots), at, id)
7206 case head <> tail:
7207 List.append(&2, String, fish_sub_lines(head <> tail, at),
7208 [String.append(at, " n' -a 'help' -d 'Print this message or the help of the given subcommand(s)'")])