Skip to content

Commit 2aeab0e

Browse files
committed
json and json2POJO support GUI
1 parent 5a5a92f commit 2aeab0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/net/cofcool/sourcebox/internal/JsonFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ public Args config() {
9191
.arg(new Arg("pretty", "true", "", false, null))
9292
.arg(new Arg("jsonl", "none", "json line format: none, line, idline. Only supports json file", false, null))
9393
.alias("json", name(), "path", null)
94-
.runnerTypes(EnumSet.of(RunnerType.CLI, RunnerType.WEB));
94+
.runnerTypes(EnumSet.allOf(RunnerType.class));
9595
}
9696
}

src/main/java/net/cofcool/sourcebox/internal/JsonToPojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public Args config() {
159159
.arg(new Arg("ver", Lang.JAVA_RECORD.getVer(), "language version", false, null))
160160
.arg(new Arg("pkg", "demo.json", "generated class package", false, null))
161161
.arg(new Arg("clean", "true", "delete output directory", false, null))
162-
.runnerTypes(EnumSet.of(RunnerType.CLI, RunnerType.WEB));
162+
.runnerTypes(EnumSet.allOf(RunnerType.class));
163163
}
164164

165165

0 commit comments

Comments
 (0)