From 2c9a01a48508add26c75990d46a13ba0b0310ebd Mon Sep 17 00:00:00 2001 From: sebastianMindee <130448732+sebastianMindee@users.noreply.github.com> Date: Thu, 18 Jun 2026 11:43:45 +0200 Subject: [PATCH 1/2] :recycle: change output syntax in CLI --- .../java/com/mindee/v2/cli/BaseInferenceCommand.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/mindee/v2/cli/BaseInferenceCommand.java b/src/main/java/com/mindee/v2/cli/BaseInferenceCommand.java index 3db9cc04c..be0d5ccc1 100644 --- a/src/main/java/com/mindee/v2/cli/BaseInferenceCommand.java +++ b/src/main/java/com/mindee/v2/cli/BaseInferenceCommand.java @@ -30,9 +30,9 @@ public abstract class BaseInferenceCommand implements Callable { /** Output format for the command. */ public enum OutputType { - Summary, - Full, - Raw + summary, + full, + raw } @Option( @@ -89,10 +89,10 @@ public Integer call() throws Exception { private void printOutput(CommonResponse response) throws Exception { switch (output) { - case Full: + case full: System.out.println(getFullOutput(response)); break; - case Raw: + case raw: var mapper = new ObjectMapper().enable(SerializationFeature.INDENT_OUTPUT); var jsonNode = mapper.readTree(response.getRawResponse()); System.out.println(mapper.writeValueAsString(jsonNode)); From b770deb3b97943ce8ced4ce583689226905d4b8b Mon Sep 17 00:00:00 2001 From: sebastianMindee <130448732+sebastianMindee@users.noreply.github.com> Date: Thu, 18 Jun 2026 12:23:35 +0200 Subject: [PATCH 2/2] fix test --- src/main/java/com/mindee/v2/cli/BaseInferenceCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/mindee/v2/cli/BaseInferenceCommand.java b/src/main/java/com/mindee/v2/cli/BaseInferenceCommand.java index be0d5ccc1..411774590 100644 --- a/src/main/java/com/mindee/v2/cli/BaseInferenceCommand.java +++ b/src/main/java/com/mindee/v2/cli/BaseInferenceCommand.java @@ -41,7 +41,7 @@ public enum OutputType { + "- summary: a basic summary (default)\n" + "- full: detail extraction results, including options\n" + "- raw: full JSON object", - defaultValue = "Summary" + defaultValue = "summary" ) protected OutputType output;