mirror of
https://github.com/morluto/rea.git
synced 2026-11-08 15:56:35 +00:00
fix(cli): consume canonical output validation state
This commit is contained in:
1 parent
94081b0103
commit
fc706570d9
2 files changed
+3
-5
No files matched your search
@@ -116,11 +116,7 @@ export const createCliResultOutput = (
|
||||
destination: Writable,
|
||||
): CliResultOutput | undefined => {
|
||||
let options = initialOptions;
|
||||
if (
|
||||
(options.parseError && options.format !== "jsonl") ||
|
||||
!options.validation.ok
|
||||
)
|
||||
return undefined;
|
||||
if (!options.validation.ok) return undefined;
|
||||
let format = options.format as "json" | "jsonl" | "yaml" | "toon" | "md";
|
||||
let handled = false;
|
||||
let failed = false;
|
||||
|
||||
Reference in new issue
Block a user