Cli.spec_node: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 2842-2853 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=2842&end_line=2853 import Base # items as a scope inheriting globals; its subcommands stay unparsed until # the scan enters one. def spec_node(+items: List<&2, Item>, +globals: List<&2, SpecItem>) -> Spec: +own = spec_items(items) +args = List.append(&2, SpecItem, globals, own) +slots = spec_slots(own) Spec{List.append(&2, OptKey, spec_keys(own), spec_keys(globals)), args, slots, slots_variadic(slots), raw_subs(items), has_sub_item(items), has_external(items), needs_sub(items), has_version_item(items), spec_digit_short(args), List.append(&2, SpecItem, global_spec(own, items), globals)} Uses (17): 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=cli@0.2.0.0/cli.bend&name=Item https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=OptKey https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Spec https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=SpecItem https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=global_spec https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=has_external https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=has_sub_item https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=has_version_item https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=needs_sub https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=raw_subs https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=slots_variadic https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=spec_digit_short https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=spec_items https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=spec_keys https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=spec_slots