Skip to content

Commit

Permalink
nested commands as space seperated string
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Smart <derek@grindaga.com>
  • Loading branch information
mcred committed Oct 25, 2022
1 parent 6de966e commit e5fa524
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.liquibase</groupId>
<artifactId>protobuf-generator</artifactId>
<version>0.3.2-SNAPSHOT</version>
<version>0.3.2</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand All @@ -17,7 +17,7 @@
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>4.16.1</version>
<version>4.17.1</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/liquibase/command/ListCommandsCommandStep.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ public void run(CommandResultsBuilder resultsBuilder) throws Exception {
StringBuilder out = new StringBuilder();
if (command.getName().length > 1) {
for (String s : command.getName()) {
out.append("\"").append(toKebabCase(s)).append("\"").append(",");
out.append(toKebabCase(s)).append(" ");
}
int last = out.length() - 1;
out.replace(last, last + 1, "");
json.append("[").append(out).append("]").append(",");
json.append("\"").append(out).append("\"").append(",");
} else {
for (String s : command.getName()) {
out.append(toKebabCase(s)).append(" ");
Expand Down

0 comments on commit e5fa524

Please sign in to comment.