From 31b4a7ad299eceb94c14afcfd4838de938d6868a Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Wed, 26 Apr 2023 17:27:48 +0200 Subject: [PATCH] Make Kamelet Catalog examples to use Camel JBang Signed-off-by: Andrea Cosentino --- .../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 c88415f1f..a557a76d7 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}\`.