Skip to content

Commit

Permalink
Merge pull request #42 from Hapag-Lloyd/dependabot/maven/com.beust-jc…
Browse files Browse the repository at this point in the history
…ommander-1.81

Bump jcommander from 1.72 to 1.81
  • Loading branch information
lars-sh authored Aug 9, 2021
2 parents c273af0 + 06e01f6 commit 9608155
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<dependency>
<groupId>com.beust</groupId>
<artifactId>jcommander</artifactId>
<version>1.72</version>
<version>1.81</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/deepoove/swagger/diff/cli/CLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ public void run(JCommander jCommander) {
return;
}
if (v){
JCommander.getConsole().println("1.2.2");
jCommander.getConsole().println("1.2.2");
return;
}

SwaggerDiff diff = SwaggerDiff.SWAGGER_VERSION_V2.equals(version)
? SwaggerDiff.compareV2(oldSpec, newSpec) : SwaggerDiff.compareV1(oldSpec, newSpec);

String render = getRender(outputMode).render(diff);
JCommander.getConsole().println(render);
jCommander.getConsole().println(render);
}

private Render getRender(String outputMode) {
Expand Down

0 comments on commit 9608155

Please sign in to comment.