def spec_node
cli@0.2.0.0 · cli.bend:2842
import cli@0.2.0.0/cli.bend as Cli
import Base
2842
2843
2844def spec_node(+items: List<&2, Item>, +globals: List<&2, SpecItem>) ->
2845 Spec:
2846 +own = spec_items(items)
2847 +args = List.append(&2, SpecItem, globals, own)
2848 +slots = spec_slots(own)
2849 Spec{List.append(&2, OptKey, spec_keys(own), spec_keys(globals)),
2850 args, slots, slots_variadic(slots), raw_subs(items),
2851 has_sub_item(items), has_external(items), needs_sub(items),
2852 has_version_item(items), spec_digit_short(args),
2853 List.append(&2, SpecItem, global_spec(own, items), globals)}