Cli.fish_shape: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 7095-7101 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=7095&end_line=7101 import Base def fish_shape(stop: Stop) -> List<&2, String>: match stop: case Stop{k, words, opts, builtins, subs, slots}: +has = Bool.not(List.is_empty(&2, Entry, subs)) +found = variadic(slots) fish_shape_arm(Bool.or(has, Maybe.is_some(&2, Slot, found)), k, has, found) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.is_empty https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe.is_some https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Entry 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=Stop https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=fish_shape_arm https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=variadic