This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets-examples.git
The following commit(s) were added to refs/heads/main by this push:
new 1d61f77 Update example
1d61f77 is described below
commit 1d61f77eea486bb9a639e6fac64b88f38149cf2c
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Sep 25 20:45:21 2023 +0200
Update example
---
jbang/xml-to-yaml/README.adoc | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/jbang/xml-to-yaml/README.adoc b/jbang/xml-to-yaml/README.adoc
index dfb32c4..94cf2ef 100644
--- a/jbang/xml-to-yaml/README.adoc
+++ b/jbang/xml-to-yaml/README.adoc
@@ -38,7 +38,7 @@ $ camel run *
=== Transforming to YAML
The example will on startup transform the source from XML to YAML and save
-this into dump sub directory.
+this into dump sub directory (or print to console).
This can also be done explicit from CLI, by executing:
@@ -49,6 +49,20 @@ $ camel transform * --format=yaml --output=my-dump
This will transform the XML DSL into YAML DSL and store the output in the
my-dump directory.
+If you want to print the dump to console, you can do:
+
+[source,sh]
+----
+$ camel transform * --format=yaml
+----
+
+And since yaml is default format, it can be shorter:
+
+[source,sh]
+----
+$ camel transform *
+----
+
=== Help and contributions