refactor(cli): register every command in an REA-owned command table (#11680)

* refactor(cli): register every command in an REA-owned command table

* fix(cli): flag grouped fields and named selectors in each command's input binding
This commit is contained in:
morluto authored and GitHub committed 2026-11-16 11:39:07 +08:00
1 parent dbdbda3d07
commit f14e9a1d28
18 files changed
+717 -390

No files matched your search

+1 -4
View File
@@ -153,10 +153,7 @@ export const createCliShell = (options: CliShellOptions): CliInstance => {
const serveDeclared = excludeDeclaredSensitiveArguments(cli);
encodeCliArgumentErrors(cli);
const serve = cli.serve.bind(cli);
const complete = createCliCompletions(
cli as unknown as Parameters<typeof createCliCompletions>[0],
environment,
);
const complete = createCliCompletions(cli, environment);
cli.serve = (arguments_ = process.argv.slice(2), serveOptions) => {
if (complete(arguments_, serveOptions ?? {})) return Promise.resolve();
const normalized = normalizeCliArguments(arguments_);