- public int handleCommand(final Namespace ns, final Manager m) {
- // Setup the json object mapper
- ObjectMapper jsonProcessor = new ObjectMapper();
- jsonProcessor.disable(JsonGenerator.Feature.AUTO_CLOSE_TARGET);
-
- boolean inJson = ns.getString("output").equals("json") || ns.getBoolean("json");
+ public Set<OutputType> getSupportedOutputTypes() {
+ return Set.of(OutputType.PLAIN_TEXT, OutputType.JSON);
+ }