Skip to content

Commit

Permalink
Tidy up.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrowndotje committed Sep 19, 2024
1 parent af7166e commit 2a5d9e1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/structurizr/cli/LockCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/structurizr/cli/PullCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/structurizr/cli/PushCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/structurizr/cli/UnlockCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
18 changes: 0 additions & 18 deletions src/main/java/com/structurizr/cli/VersionCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -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") + ")");
}
Expand Down

0 comments on commit 2a5d9e1

Please sign in to comment.