From 1ae07e9f9249520895765a4109ffa26d23269537 Mon Sep 17 00:00:00 2001 From: Mike Solomon Date: Mon, 11 Dec 2023 11:12:42 -0800 Subject: [PATCH] Adjust maven shell command to single line 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: https://github.com/openrewrite/rewrite-recipe-markdown-generator/issues/90 --- src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt b/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt index a9880a5..a91232b 100644 --- a/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt +++ b/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt @@ -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 %} @@ -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 %}