You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/04/26 15:28:08 UTC

[camel-kamelets] branch jbang created (now 31b4a7ad)

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

acosentino pushed a change to branch jbang
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


      at 31b4a7ad Make Kamelet Catalog examples to use Camel JBang

This branch includes the following new commits:

     new 31b4a7ad Make Kamelet Catalog examples to use Camel JBang

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel-kamelets] 01/01: Make Kamelet Catalog examples to use Camel JBang

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch jbang
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 31b4a7ad299eceb94c14afcfd4838de938d6868a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Apr 26 17:27:48 2023 +0200

    Make Kamelet Catalog examples to use Camel JBang
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../ROOT/examples/template/kamelet-options.adoc    | 36 +++++++++++++++++++++-
 1 file changed, 35 insertions(+), 1 deletion(-)

diff --git a/docs/modules/ROOT/examples/template/kamelet-options.adoc b/docs/modules/ROOT/examples/template/kamelet-options.adoc
index c88415f1..a557a76d 100644
--- a/docs/modules/ROOT/examples/template/kamelet-options.adoc
+++ b/docs/modules/ROOT/examples/template/kamelet-options.adoc
@@ -30,7 +30,41 @@ At runtime, the \`{name}\` Kamelet relies upon the presence of the following dep
 
 jsonpathList::example$yaml/${basename}.kamelet.yaml[query='nodes$.spec.dependencies.*',format='value']
 
-== Usage
+== Camel Jbang usage
+
+=== *Prerequisites*
+
+* You've installed https://www.jbang.dev/[Jbang].
+* You have executed the following command:
+
+[source,shell,subs=+attributes]
+----
+jbang app install camel@apache/camel
+----
+
+Supposing you have a file named route.yaml with this content:
+
+[source,yaml,subs='+attributes,macros']
+----
+- route:
+    from:
+      uri: "kamelet:timer-source"
+      parameters:
+        period: 10000
+        message: 'test'
+      steps:
+        - to: 
+            uri: "kamelet:log-sink"
+----
+
+You can now run it directly through the following command
+
+[source,shell,subs=+attributes]
+----
+camel run route.yaml
+----
+
+== Camel K Enviroment Usage
 
 This section describes how you can use the \`{name}\`.