mirror of
https://github.com/morluto/rea.git
synced 2026-11-15 19:23:24 +00:00
A plain `rea --version` reached loadCliRuntime with no command name, so selectCliRegistration returned undefined and the complete CLI, with every registrar and its schemas, loaded only for Incur to print the version. selectCliRegistrations now returns the registrars an invocation needs: none for a standalone --version, one for a recorded command, and undefined when the complete CLI must answer. Combined flags, help and shell completion keep the complete CLI. Ported from #4083 onto main's lazy registration loader. Co-authored-by: jianghh <3232826884@qq.com>