Skip to content

Commit

Permalink
Adjust maven shell command to single line
Browse files Browse the repository at this point in the history
While multi-line works on Mac and Linux and improves readability, it
doesn't work on many Windows shells. We should favor having the commands
work over readability -- so this change updates the command line command to
a single line that should work on all shells.

Fixes: #90
  • Loading branch information
mike-solomon committed Dec 11, 2023
1 parent 95dedd8 commit 1ae07e9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1495,8 +1495,7 @@ $cliSnippet
You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command.
{% code title="shell" %}
```shell
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
-Drewrite.activeRecipes=${recipeDescriptor.name}
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.activeRecipes=${recipeDescriptor.name}
```
{% endcode %}
{% endtab %}
Expand Down Expand Up @@ -1622,9 +1621,7 @@ $cliSnippet
You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command.
```shell
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
-Drewrite.recipeArtifactCoordinates=${origin.groupId}:${origin.artifactId}:RELEASE \
-Drewrite.activeRecipes=${recipeDescriptor.name}
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=${origin.groupId}:${origin.artifactId}:RELEASE -Drewrite.activeRecipes=${recipeDescriptor.name}
```
{% endcode %}
{% endtab %}
Expand Down

0 comments on commit 1ae07e9

Please sign in to comment.