- public void handleCommand(final Void request, final Manager m) throws CommandException {
- final var jsonWriter = (JsonWriter) outputWriter;
- jsonWriter.write(Map.of("version", BaseConfig.PROJECT_VERSION));
+ public void handleCommand(
+ final Void request, final MultiAccountManager c, final JsonWriter jsonWriter
+ ) throws CommandException {
+ outputVersion(jsonWriter);
+ }
+
+ private void outputVersion(final JsonWriter jsonWriter) {
+ jsonWriter.write(Map.of("version",
+ BaseConfig.PROJECT_VERSION == null ? "unknown" : BaseConfig.PROJECT_VERSION));