mirror of
https://github.com/morluto/rea.git
synced 2026-11-23 15:05:51 +00:00
fix(cli): reuse decoded inline JSON during admission (#11790)
This commit is contained in:
4 files changed
+121
-23
No files matched your search
@@ -663,7 +663,7 @@ export const registerContractCommand = <
|
||||
logCliCommand(logger, description.command, async () => {
|
||||
const options = selected.admitDeliveryOptions(values);
|
||||
if (!options.ok) return projectAnalysisError(options.error);
|
||||
const read = await readJsonInputs(selected, values, signal);
|
||||
const read = await readJsonInputs(selected, options.value, signal);
|
||||
if (!read.ok) return read.error;
|
||||
const admitted = selected.admit(read.value);
|
||||
// Admission and handler issues alike name renamed fields by CLI key.
|
||||
@@ -981,7 +981,7 @@ export const registerRoutedCommand = (
|
||||
if (!options.ok) return projectAnalysisError(options.error);
|
||||
const read = await readJsonInputs(
|
||||
description,
|
||||
shared.value,
|
||||
options.value,
|
||||
signal,
|
||||
ownJsonInputs(description, sharedJson),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user