mirror of
https://github.com/morluto/rea.git
synced 2026-11-17 04:04:25 +00:00
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:
1 parent
dbdbda3d07
commit
f14e9a1d28
18 files changed
+717
-390
No files matched your search
+1
-4
@@ -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_);
|
||||
|
||||
Reference in new issue
Block a user