From 2a5d9e1bd56b4120f53693a2e368ffc69951aa63 Mon Sep 17 00:00:00 2001 From: Simon Brown Date: Thu, 19 Sep 2024 12:23:19 +0100 Subject: [PATCH] Tidy up. --- .../java/com/structurizr/cli/LockCommand.java | 2 +- .../java/com/structurizr/cli/PullCommand.java | 2 +- .../java/com/structurizr/cli/PushCommand.java | 2 +- .../com/structurizr/cli/UnlockCommand.java | 2 +- .../com/structurizr/cli/VersionCommand.java | 18 ------------------ 5 files changed, 4 insertions(+), 22 deletions(-) diff --git a/src/main/java/com/structurizr/cli/LockCommand.java b/src/main/java/com/structurizr/cli/LockCommand.java index 020584c..fba92bf 100644 --- a/src/main/java/com/structurizr/cli/LockCommand.java +++ b/src/main/java/com/structurizr/cli/LockCommand.java @@ -15,7 +15,7 @@ class LockCommand extends AbstractCommand { public void run(String... args) throws Exception { Options options = new Options(); - Option option = new Option("url", "structurizrApiUrl", true, "Structurizr API URL (default: https://api.structurizr.com"); + Option option = new Option("url", "structurizrApiUrl", true, "Structurizr API URL (default: https://api.structurizr.com)"); option.setRequired(false); options.addOption(option); diff --git a/src/main/java/com/structurizr/cli/PullCommand.java b/src/main/java/com/structurizr/cli/PullCommand.java index 282e7fb..171689a 100644 --- a/src/main/java/com/structurizr/cli/PullCommand.java +++ b/src/main/java/com/structurizr/cli/PullCommand.java @@ -20,7 +20,7 @@ class PullCommand extends AbstractCommand { public void run(String... args) throws Exception { Options options = new Options(); - Option option = new Option("url", "structurizrApiUrl", true, "Structurizr API URL (default: https://api.structurizr.com"); + Option option = new Option("url", "structurizrApiUrl", true, "Structurizr API URL (default: https://api.structurizr.com)"); option.setRequired(false); options.addOption(option); diff --git a/src/main/java/com/structurizr/cli/PushCommand.java b/src/main/java/com/structurizr/cli/PushCommand.java index 174449a..f167dad 100644 --- a/src/main/java/com/structurizr/cli/PushCommand.java +++ b/src/main/java/com/structurizr/cli/PushCommand.java @@ -20,7 +20,7 @@ class PushCommand extends AbstractCommand { public void run(String... args) throws Exception { Options options = new Options(); - Option option = new Option("url", "structurizrApiUrl", true, "Structurizr API URL (default: https://api.structurizr.com"); + Option option = new Option("url", "structurizrApiUrl", true, "Structurizr API URL (default: https://api.structurizr.com)"); option.setRequired(false); options.addOption(option); diff --git a/src/main/java/com/structurizr/cli/UnlockCommand.java b/src/main/java/com/structurizr/cli/UnlockCommand.java index 33225a7..914289d 100644 --- a/src/main/java/com/structurizr/cli/UnlockCommand.java +++ b/src/main/java/com/structurizr/cli/UnlockCommand.java @@ -15,7 +15,7 @@ class UnlockCommand extends AbstractCommand { public void run(String... args) throws Exception { Options options = new Options(); - Option option = new Option("url", "structurizrApiUrl", true, "Structurizr API URL (default: https://api.structurizr.com"); + Option option = new Option("url", "structurizrApiUrl", true, "Structurizr API URL (default: https://api.structurizr.com)"); option.setRequired(false); options.addOption(option); diff --git a/src/main/java/com/structurizr/cli/VersionCommand.java b/src/main/java/com/structurizr/cli/VersionCommand.java index 091f44a..66f3506 100644 --- a/src/main/java/com/structurizr/cli/VersionCommand.java +++ b/src/main/java/com/structurizr/cli/VersionCommand.java @@ -54,24 +54,6 @@ public void run(String... args) throws Exception { e.printStackTrace(); } - try { - log.info("structurizr-dsl: " + Class.forName(StructurizrDslParser.class.getCanonicalName()).getPackage().getImplementationVersion()); - } catch (Exception e) { - e.printStackTrace(); - } - - try { - log.info("structurizr-export: " + Class.forName(StructurizrPlantUMLExporter.class.getCanonicalName()).getPackage().getImplementationVersion()); - } catch (Exception e) { - e.printStackTrace(); - } - - try { - log.info("structurizr-import: v" + Class.forName(DefaultDocumentationImporter.class.getCanonicalName()).getPackage().getImplementationVersion()); - } catch (Exception e) { - e.printStackTrace(); - } - log.info("Java: " + System.getProperty("java.version") + "/" + System.getProperty("java.vendor") + " (" + System.getProperty("java.home") + ")"); log.info("OS: " + System.getProperty("os.name") + " " + System.getProperty("os.version") + " (" + System.getProperty("os.arch") + ")"); }