This is an automated email from the ASF dual-hosted git repository.

sgoeschl pushed a commit to branch FREEMARKER-181
in repository https://gitbox.apache.org/repos/asf/freemarker-generator.git

commit 791c40cbf5e394b7f3174317096559d6ce0a961e
Author: Siegfried Goeschl <[email protected]>
AuthorDate: Sun May 23 10:16:03 2021 +0200

    FREEMARKER-181 Support custom pattern definitions for Grok tool
---
 .../site/markdown/cli/concepts/transformation.md   | 23 +++++++++++++---------
 freemarker-generator-tools/pom.xml                 |  4 ++--
 2 files changed, 16 insertions(+), 11 deletions(-)

diff --git 
a/freemarker-generator-cli/src/site/markdown/cli/concepts/transformation.md 
b/freemarker-generator-cli/src/site/markdown/cli/concepts/transformation.md
index 11b1323..9b20e10 100644
--- a/freemarker-generator-cli/src/site/markdown/cli/concepts/transformation.md
+++ b/freemarker-generator-cli/src/site/markdown/cli/concepts/transformation.md
@@ -12,7 +12,7 @@ The `freemarker-generator` generates text output based on 
processing FreeMarker
 * When the output is written to a directory
     * the structure of the input directory is preserved
     * any `ftl` file extension is removed
-* Positional command line arguments are interpreted as `data sources` (or 
directories) and accessible by a `output generators`   
+* Positional command line arguments are interpreted as `data sources` (or 
directories) and accessible by a all `output generators`   
 
 ### Examples
 
@@ -69,14 +69,19 @@ target
         `-- nginx.conf
 ```
 
-Transforming multiple templates and data sources to multiple output files
+Defining multiple transformation on the command line can be clumsy but 
[Picolic's @-Files](https://picocli.info/#AtFiles) can help - the following 
`@-File` defined, e.g. `@examples.args`
 
 ```
-freemarker-generator \
--t freemarker-generator/yaml/json/transform.ftl -s 
examples/data/yaml/customer.yaml -o customer.json \
--t freemarker-generator/yaml/json/transform.ftl -s 
examples/data/yaml/swagger-spec.yaml -o swagger-spec.json
+#############################################################################
+# CSV
+#############################################################################
+
+-t freemarker-generator/csv/html/transform.ftl -s 
examples/data/csv/contract.csv -o target/out/contract.html
+-t freemarker-generator/csv/md/transform.ftl -s examples/data/csv/contract.csv 
-o target/out/contract.md
+```
 
-> ls -l *.json
--rw-r--r--  1 sgoeschl  staff   332B Jan  5 21:30 customer.json
--rw-r--r--  1 sgoeschl  staff    25K Jan  5 21:30 swagger-spec.json
-```  
+than multiple transformation can be invoked using the following command line
+
+```
+bin/freemarker-generator @examples.args 
+```
diff --git a/freemarker-generator-tools/pom.xml 
b/freemarker-generator-tools/pom.xml
index 5d1bcba..57431a8 100644
--- a/freemarker-generator-tools/pom.xml
+++ b/freemarker-generator-tools/pom.xml
@@ -97,7 +97,7 @@
         <dependency>
             <groupId>com.google.code.gson</groupId>
             <artifactId>gson</artifactId>
-            <version>2.8.6</version>
+            <version>2.8.8</version>
         </dependency>
         <!-- Java Faker -->
         <dependency>
@@ -127,7 +127,7 @@
         <dependency>
             <groupId>org.yaml</groupId>
             <artifactId>snakeyaml</artifactId>
-            <version>1.27</version>
+            <version>1.28</version>
         </dependency>
         <!-- Testing -->
         <dependency>

Reply via email to