1.0.1 Prefer to use "|jq." instead of jackson pretty printer

master
yanng@vidconnect.cyou 1 month ago
parent a10b5be973
commit 6701be7c5d

@ -47,9 +47,8 @@ public class Splicer {
}).filter(Objects::nonNull).collect(Collectors.toList()); }).filter(Objects::nonNull).collect(Collectors.toList());
executorService.shutdown(); executorService.shutdown();
System.out.println( System.out.println(new ObjectMapper().writeValueAsString(Map.of("results", results)));
new ObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(Map.of("results", results)));
} }
public static ExecutionResult executeShell(String command) { public static ExecutionResult executeShell(String command) {

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>cyou.vidconnect</groupId> <groupId>cyou.vidconnect</groupId>
<artifactId>splicer</artifactId> <artifactId>splicer</artifactId>
<version>1.0.0</version> <version>1.0.1</version>
<name>splicer</name> <name>splicer</name>
<description>Run multiple shell commands concurrently</description> <description>Run multiple shell commands concurrently</description>
<properties> <properties>

@ -45,8 +45,7 @@ public class Main {
executorService.shutdown(); executorService.shutdown();
System.out.println( System.out.println(new ObjectMapper().writeValueAsString(Map.of("results", results)));
new ObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(Map.of("results", results)));
} }
public static ExecutionResult executeShell(String command) { public static ExecutionResult executeShell(String command) {

Loading…
Cancel
Save