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 32a9da3 Polished 32a9da3 is described below commit 32a9da30781089c9b63d31b9e551e131dcfc17a6 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Dec 15 10:04:20 2023 +0100 Polished --- jbang/app-routes-beans/README.adoc | 9 +-------- jbang/app-routes-spring-beans/README.adoc | 9 +-------- jbang/app-routes/README.adoc | 9 +-------- jbang/artemis/README.adoc | 8 -------- .../aws-database-admin-secrets-refresh/README.adoc | 7 ------- jbang/aws-s3-cdc/README.adoc | 7 ------- jbang/aws-secrets-manager/README.adoc | 9 --------- jbang/azure-eventhubs-kafka-ibm-mq/README.adoc | 21 --------------------- jbang/azure-key-vault-secrets-reloading/README.adoc | 7 ------- jbang/azure-storage-blob-append/README.adoc | 10 ---------- jbang/azure-storage-blob-cdc/README.adoc | 9 --------- jbang/bean-builder/README.adoc | 8 -------- jbang/bean-inlined-code/README.adoc | 8 -------- jbang/camelk-bean/README.adoc | 9 +-------- jbang/camelk-bind/README.adoc | 9 +-------- jbang/chaos-monkey/README.adoc | 11 ++--------- jbang/circuit-breaker/README.adoc | 7 ------- jbang/custom-kamelet/README.adoc | 2 +- jbang/dependency-injection/README.adoc | 8 -------- jbang/error-handler/README.adoc | 9 +-------- jbang/gcp-secret-manager-reloading/README.adoc | 9 --------- jbang/google-secret-manager/README.adoc | 13 +++---------- jbang/google-storage-cdc/README.adoc | 9 --------- jbang/hello-endpoint-dsl/README.adoc | 13 +++---------- jbang/hello-java/README.adoc | 9 +-------- jbang/hello-xml/README.adoc | 9 +-------- jbang/hello-yaml/README.adoc | 9 +-------- jbang/http-streaming/README.adoc | 7 ------- jbang/jbang-edit/README.adoc | 7 ------- jbang/json-transform/README.adoc | 7 ------- jbang/languages/README.adoc | 11 ++--------- jbang/local-jar/README.adoc | 8 -------- jbang/metrics/README.adoc | 9 +-------- jbang/postgresql-gcp-secret-refresh/README.adoc | 9 +-------- jbang/prometheus/README.adoc | 9 +-------- jbang/slack-source/README.adoc | 14 ++++---------- jbang/type-converter/README.adoc | 8 -------- jbang/xml-and-bean/README.adoc | 8 -------- jbang/xslt-transform/README.adoc | 7 ------- 39 files changed, 27 insertions(+), 324 deletions(-) diff --git a/jbang/app-routes-beans/README.adoc b/jbang/app-routes-beans/README.adoc index 6004eb9..9f1cb14 100644 --- a/jbang/app-routes-beans/README.adoc +++ b/jbang/app-routes-beans/README.adoc @@ -35,13 +35,6 @@ Then you can run this example using: $ camel run StandaloneGreeter.java beans.yaml app.xml ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run StandaloneGreeter.java beans.yaml app.xml ----- - === Live reload You can run the example in dev mode which allows you to edit the example, @@ -58,7 +51,7 @@ The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/app-routes-beans +$ camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/app-routes-beans ---- === Developer Web Console diff --git a/jbang/app-routes-spring-beans/README.adoc b/jbang/app-routes-spring-beans/README.adoc index 9401d82..ab93b3e 100644 --- a/jbang/app-routes-spring-beans/README.adoc +++ b/jbang/app-routes-spring-beans/README.adoc @@ -37,13 +37,6 @@ Then you can run this example using: $ camel run StandaloneGreeter.java beans.yaml app.xml ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run StandaloneGreeter.java beans.yaml app.xml ----- - === Live reload You can run the example in dev mode which allows you to edit the example, @@ -60,7 +53,7 @@ The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/app-routes-beans +$ camel runhttps://github.com/apache/camel-kamelets-examples/tree/main/jbang/app-routes-beans ---- === Developer Web Console diff --git a/jbang/app-routes/README.adoc b/jbang/app-routes/README.adoc index 633b755..ee87c1c 100644 --- a/jbang/app-routes/README.adoc +++ b/jbang/app-routes/README.adoc @@ -36,13 +36,6 @@ Then you can run this example using: $ camel run app.xml ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run app.xml ----- - === Live reload You can run the example in dev mode which allows you to edit the example, @@ -59,7 +52,7 @@ The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/app-routes +$ camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/app-routes ---- === Developer Web Console diff --git a/jbang/artemis/README.adoc b/jbang/artemis/README.adoc index e13884b..1a6e84b 100644 --- a/jbang/artemis/README.adoc +++ b/jbang/artemis/README.adoc @@ -40,18 +40,10 @@ Then you can run this example using: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run * ----- - === Artemis configuration See the `application.properties` for how to configure to the ActiveMQ Artemis broker. - === Developer Web Console You can enable the developer console via `--console` flag as show: diff --git a/jbang/aws-database-admin-secrets-refresh/README.adoc b/jbang/aws-database-admin-secrets-refresh/README.adoc index 75ad6b8..af70931 100644 --- a/jbang/aws-database-admin-secrets-refresh/README.adoc +++ b/jbang/aws-database-admin-secrets-refresh/README.adoc @@ -81,13 +81,6 @@ Or run it even shorter: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run sql-query.yaml ----- - The application will run and consume immediately, then it will wait 120 seconds to query the database again. [source,sh] diff --git a/jbang/aws-s3-cdc/README.adoc b/jbang/aws-s3-cdc/README.adoc index 5a487a4..3a1eac5 100644 --- a/jbang/aws-s3-cdc/README.adoc +++ b/jbang/aws-s3-cdc/README.adoc @@ -117,13 +117,6 @@ Or run it even shorter: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run aws-s3-cdc-log.yaml ----- - === Developer Web Console You can enable the developer console via `--console` flag as show: diff --git a/jbang/aws-secrets-manager/README.adoc b/jbang/aws-secrets-manager/README.adoc index 663bc69..18fdece 100644 --- a/jbang/aws-secrets-manager/README.adoc +++ b/jbang/aws-secrets-manager/README.adoc @@ -64,15 +64,6 @@ Or run it even shorter: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run timer-aws-secret-reloading.yaml ----- - - - === Modify the secret You can list the secrets in use from the AWS security vault: diff --git a/jbang/azure-eventhubs-kafka-ibm-mq/README.adoc b/jbang/azure-eventhubs-kafka-ibm-mq/README.adoc index fb6f7a8..f2bdbc6 100644 --- a/jbang/azure-eventhubs-kafka-ibm-mq/README.adoc +++ b/jbang/azure-eventhubs-kafka-ibm-mq/README.adoc @@ -92,13 +92,6 @@ Then you can run this example using: $ camel run --local-kamelet-dir=<your-local-kamelets-path> kafka-mq.yaml ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run --local-kamelet-dir=<your-local-kamelets-path> kafka-mq.yaml ----- - === MQ to log Then you can run this example using: @@ -108,13 +101,6 @@ Then you can run this example using: $ camel run mq-log.yaml ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run mq-log.yaml ----- - === Send data to Kafka on Eventhubs You can run the timer to kafka route. @@ -124,13 +110,6 @@ You can run the timer to kafka route. $ camel run --local-kamelet-dir=<your-local-kamelets-path> timer-kafka.yaml ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run --local-kamelet-dir=<your-local-kamelets-path> timer-kafka.yaml ----- - === Help and contributions If you hit any problem using Camel or have some feedback, then please diff --git a/jbang/azure-key-vault-secrets-reloading/README.adoc b/jbang/azure-key-vault-secrets-reloading/README.adoc index d531446..beb600c 100644 --- a/jbang/azure-key-vault-secrets-reloading/README.adoc +++ b/jbang/azure-key-vault-secrets-reloading/README.adoc @@ -77,13 +77,6 @@ Or run it even shorter: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run timer-azure-key-vault-reloading.yaml ----- - === Modify the secret You can list the secrets in use from the Azure security vault: diff --git a/jbang/azure-storage-blob-append/README.adoc b/jbang/azure-storage-blob-append/README.adoc index cd19ff5..ef61e79 100644 --- a/jbang/azure-storage-blob-append/README.adoc +++ b/jbang/azure-storage-blob-append/README.adoc @@ -39,16 +39,6 @@ $ camel run --local-kamelet-dir=<local-kamelets-dir> timer-append-blob.yaml Replace the local kamelet dir with your local directory. -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang run camel@apache/camel run --local-kamelet-dir=<local-kamelets-dir> timer-append-blob.yaml ----- - -Replace the local kamelet dir with your local directory. - - === Developer Web Console You can enable the developer console via `--console` flag as show: diff --git a/jbang/azure-storage-blob-cdc/README.adoc b/jbang/azure-storage-blob-cdc/README.adoc index 1c613b2..3865e66 100644 --- a/jbang/azure-storage-blob-cdc/README.adoc +++ b/jbang/azure-storage-blob-cdc/README.adoc @@ -68,15 +68,6 @@ $ camel run --local-kamelet-dir=<local-kamelets-dir> azure-storage-blob-cdc.yaml Replace the local kamelet dir with your local directory. -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang run camel@apache/camel run --local-kamelet-dir=<local-kamelets-dir> azure-storage-blob-cdc.yaml ----- - -Replace the local kamelet dir with your local directory. - === Developer Web Console You can enable the developer console via `--console` flag as show: diff --git a/jbang/bean-builder/README.adoc b/jbang/bean-builder/README.adoc index 385ac02..b3b532a 100644 --- a/jbang/bean-builder/README.adoc +++ b/jbang/bean-builder/README.adoc @@ -39,14 +39,6 @@ Then you can run this example using: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run * ----- - - === Live reload You can run the example in dev mode which allows you to edit the example, diff --git a/jbang/bean-inlined-code/README.adoc b/jbang/bean-inlined-code/README.adoc index 7cb5198..cfd628a 100644 --- a/jbang/bean-inlined-code/README.adoc +++ b/jbang/bean-inlined-code/README.adoc @@ -39,14 +39,6 @@ Then you can run this example using: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run * ----- - - === Live reload You can run the example in dev mode which allows you to edit the example, diff --git a/jbang/camelk-bean/README.adoc b/jbang/camelk-bean/README.adoc index 979f3bc..55514cf 100644 --- a/jbang/camelk-bean/README.adoc +++ b/jbang/camelk-bean/README.adoc @@ -34,20 +34,13 @@ Then you can run this example using: $ camel run echo.yaml ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run echo.yaml ----- - === Run directly from github The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/camelk-bean +$ camel runhttps://github.com/apache/camel-kamelets-examples/tree/main/jbang/camelk-bean ---- === Live reload diff --git a/jbang/camelk-bind/README.adoc b/jbang/camelk-bind/README.adoc index 82611ee..01f6f3e 100644 --- a/jbang/camelk-bind/README.adoc +++ b/jbang/camelk-bind/README.adoc @@ -34,20 +34,13 @@ Then you can run this example using: $ camel run my-bind.yaml ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run my-bind.yaml ----- - === Run directly from github The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/camelk-bind +$ camel runhttps://github.com/apache/camel-kamelets-examples/tree/main/jbang/camelk-bind ---- === Live reload diff --git a/jbang/chaos-monkey/README.adoc b/jbang/chaos-monkey/README.adoc index 4740915..9e23ccf 100644 --- a/jbang/chaos-monkey/README.adoc +++ b/jbang/chaos-monkey/README.adoc @@ -37,23 +37,16 @@ Then you can run this example using: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run * ----- - === Run directly from github The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/chaos-monkey --health +$ camel runhttps://github.com/apache/camel-kamelets-examples/tree/main/jbang/chaos-monkey --health ---- -=== Helath Check Console +=== Health Check Console You can enable the health check console via `--health` flag as show: diff --git a/jbang/circuit-breaker/README.adoc b/jbang/circuit-breaker/README.adoc index b7da4e6..57314de 100644 --- a/jbang/circuit-breaker/README.adoc +++ b/jbang/circuit-breaker/README.adoc @@ -33,13 +33,6 @@ Then you can run this example using: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run * ----- - While the Camel integration is running, then from another terminal type: [source,sh] diff --git a/jbang/custom-kamelet/README.adoc b/jbang/custom-kamelet/README.adoc index f6cf1b8..f5bdf56 100644 --- a/jbang/custom-kamelet/README.adoc +++ b/jbang/custom-kamelet/README.adoc @@ -51,7 +51,7 @@ The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/custom-kamelet --local-kamelet-dir=https://github.com/apache/camel-kamelets-examples/tree/main/custom-kamelets +$ camel runhttps://github.com/apache/camel-kamelets-examples/tree/main/jbang/custom-kamelet --local-kamelet-dir=https://github.com/apache/camel-kamelets-examples/tree/main/custom-kamelets ---- diff --git a/jbang/dependency-injection/README.adoc b/jbang/dependency-injection/README.adoc index f7a68b7..4cdd8af 100644 --- a/jbang/dependency-injection/README.adoc +++ b/jbang/dependency-injection/README.adoc @@ -39,14 +39,6 @@ Then you can run this example using: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run * ----- - - === Live reload You can run the example in dev mode which allows you to edit the example, diff --git a/jbang/error-handler/README.adoc b/jbang/error-handler/README.adoc index 1de292b..f43d6b8 100644 --- a/jbang/error-handler/README.adoc +++ b/jbang/error-handler/README.adoc @@ -33,20 +33,13 @@ Then you can run this example using: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run * ----- - === Run directly from github The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/error-handler +$ camel runhttps://github.com/apache/camel-kamelets-examples/tree/main/jbang/error-handler ---- === Help and contributions diff --git a/jbang/gcp-secret-manager-reloading/README.adoc b/jbang/gcp-secret-manager-reloading/README.adoc index 3eb17c5..859714c 100644 --- a/jbang/gcp-secret-manager-reloading/README.adoc +++ b/jbang/gcp-secret-manager-reloading/README.adoc @@ -154,15 +154,6 @@ Or run it even shorter: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run timer-gcp-secret-reloading.yaml ----- - - - === Modify the secret You can list the secrets in use from the GCP secret manager service: diff --git a/jbang/google-secret-manager/README.adoc b/jbang/google-secret-manager/README.adoc index 7e5b9fb..eb02384 100644 --- a/jbang/google-secret-manager/README.adoc +++ b/jbang/google-secret-manager/README.adoc @@ -43,16 +43,10 @@ Then you can run this example using: $ camel run timer-gcp-sec-finnhub.yaml ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run timer-gcp-sec-finnhub.yaml ----- - You should see -``` +[source,bash] +---- [jbang] Resolving dependencies... [jbang] Artifacts used for dependency management: org.apache.camel:camel-bom:pom:3.16.0 @@ -99,8 +93,7 @@ A new lock file was created, delete the file to stop running: 2022-04-15 15:06:28.522 INFO 12364 --- [ main] e.camel.impl.engine.AbstractCamelContext : Started log-sink-2 (kamelet://source) 2022-04-15 15:06:28.523 INFO 12364 --- [ main] e.camel.impl.engine.AbstractCamelContext : Apache Camel 3.16.0 (CamelJBang) started in 2s280ms (build:102ms init:1s990ms start:188ms) 2022-04-15 15:06:30.137 INFO 12364 --- [ - timer://tick] info : Exchange[ExchangePattern: InOnly, BodyType: org.apache.camel.converter.stream.CachedOutputStream.WrappedInputStream, Body: {"c":165.29,"d":-5.11,"dp":-2.9988,"h":171.27,"l":165.05,"o":170.62,"pc":170.4,"t":1649966404}] - -``` +---- === Developer Web Console diff --git a/jbang/google-storage-cdc/README.adoc b/jbang/google-storage-cdc/README.adoc index 8938021..3576bde 100644 --- a/jbang/google-storage-cdc/README.adoc +++ b/jbang/google-storage-cdc/README.adoc @@ -118,15 +118,6 @@ $ camel run --local-kamelet-dir=<local-kamelets-dir> google-storage-cdc.yaml Replace the local kamelet dir with your local directory. -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang run camel@apache/camel run --local-kamelet-dir=<local-kamelets-dir> google-storage-cdc.yaml ----- - -Replace the local kamelet dir with your local directory. - === Developer Web Console You can enable the developer console via `--console` flag as show: diff --git a/jbang/hello-endpoint-dsl/README.adoc b/jbang/hello-endpoint-dsl/README.adoc index 0ffaedd..cd595d0 100644 --- a/jbang/hello-endpoint-dsl/README.adoc +++ b/jbang/hello-endpoint-dsl/README.adoc @@ -33,34 +33,27 @@ Then you can run this example using: $ camel run Hey.java ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run Hey.java ----- - === Run directly from github The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/hello-endpoint-dsl +$ camel runhttps://github.com/apache/camel-kamelets-examples/tree/main/jbang/hello-endpoint-dsl ---- You can even try other examples such as the polyglot example from Camel K: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-k/tree/main/examples/polyglot +$ camel runhttps://github.com/apache/camel-k/tree/main/examples/polyglot ---- Or the Kotlin route(s) (you can use wildcards): [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-k/tree/main/examples/languages/*.kts +$ camel runhttps://github.com/apache/camel-k/tree/main/examples/languages/*.kts ---- === Live reload diff --git a/jbang/hello-java/README.adoc b/jbang/hello-java/README.adoc index 8e36b02..95f4fb3 100644 --- a/jbang/hello-java/README.adoc +++ b/jbang/hello-java/README.adoc @@ -33,13 +33,6 @@ Then you can run this example using: $ camel run Hey.java ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run Hey.java ----- - === Live reload You can run the example in dev mode which allows you to edit the example, @@ -56,7 +49,7 @@ The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/hello-java +$ camel runhttps://github.com/apache/camel-kamelets-examples/tree/main/jbang/hello-java ---- === Developer Web Console diff --git a/jbang/hello-xml/README.adoc b/jbang/hello-xml/README.adoc index 4c38aeb..4705295 100644 --- a/jbang/hello-xml/README.adoc +++ b/jbang/hello-xml/README.adoc @@ -33,13 +33,6 @@ Then you can run this example using: $ camel run hi.xml ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run hi.xml ----- - === Live reload You can run the example in dev mode which allows you to edit the example, @@ -56,7 +49,7 @@ The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/hello-xml +$ camel runhttps://github.com/apache/camel-kamelets-examples/tree/main/jbang/hello-xml ---- === Developer Web Console diff --git a/jbang/hello-yaml/README.adoc b/jbang/hello-yaml/README.adoc index ad18134..fe765c6 100644 --- a/jbang/hello-yaml/README.adoc +++ b/jbang/hello-yaml/README.adoc @@ -33,20 +33,13 @@ Then you can run this example using: $ camel run hello.yaml ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run hello.yaml ----- - === Run directly from github The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/hello-yaml +$ camel runhttps://github.com/apache/camel-kamelets-examples/tree/main/jbang/hello-yaml ---- === Live reload diff --git a/jbang/http-streaming/README.adoc b/jbang/http-streaming/README.adoc index 36946c7..8b247dc 100644 --- a/jbang/http-streaming/README.adoc +++ b/jbang/http-streaming/README.adoc @@ -43,13 +43,6 @@ Then you can run this example using: $ camel run my-stream.yaml ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run mystream.yaml ----- - === Help and contributions If you hit any problem using Camel or have some feedback, then please diff --git a/jbang/jbang-edit/README.adoc b/jbang/jbang-edit/README.adoc index f945188..1aa5087 100644 --- a/jbang/jbang-edit/README.adoc +++ b/jbang/jbang-edit/README.adoc @@ -35,13 +35,6 @@ Then you can run this example using: $ camel run foo.java ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run foo.java ----- - === Editing source via jbang To make it easy to load the project into a Java editor such as IDEA or VSCode, then we can use jbang CLI for this. diff --git a/jbang/json-transform/README.adoc b/jbang/json-transform/README.adoc index 04c3399..f9705b2 100644 --- a/jbang/json-transform/README.adoc +++ b/jbang/json-transform/README.adoc @@ -33,13 +33,6 @@ Then you can run this example using: $ camel run beer-jq.yaml ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run beer-jq.yaml ----- - === Live updates of message transformation You can do live changes to the template in the beer-jo.yaml file and see the output in real-time with Camel JBang by running: diff --git a/jbang/languages/README.adoc b/jbang/languages/README.adoc index 4d15304..082a752 100644 --- a/jbang/languages/README.adoc +++ b/jbang/languages/README.adoc @@ -35,18 +35,11 @@ Then you can run this example using: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run * ----- - You can also filter to only run the yaml DSL by: [source,sh] ---- -$ jbang camel@apache/camel run *.yaml +$ camel run*.yaml ---- === Live reload @@ -65,7 +58,7 @@ The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/languages +$ camel runhttps://github.com/apache/camel-kamelets-examples/tree/main/jbang/languages ---- === Developer Web Console diff --git a/jbang/local-jar/README.adoc b/jbang/local-jar/README.adoc index 106a4ab..7c4dd15 100644 --- a/jbang/local-jar/README.adoc +++ b/jbang/local-jar/README.adoc @@ -41,14 +41,6 @@ Or run with wildcard: $ camel run * ---- - -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run foo.java commons-lang3-3.12.0.jar ----- - === Exporting to Spring Boot or Quarkus You can export the example to a vanilla Camel Spring Boot / Camel Quarkus project, and the local JARs diff --git a/jbang/metrics/README.adoc b/jbang/metrics/README.adoc index 5573b33..95c89cd 100644 --- a/jbang/metrics/README.adoc +++ b/jbang/metrics/README.adoc @@ -33,20 +33,13 @@ Then you can run this example using: $ camel run metrics.yaml ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run metrics.yaml ----- - === Run directly from github The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/metrics +$ camel runhttps://github.com/apache/camel-kamelets-examples/tree/main/jbang/metrics ---- === Developer Web Console diff --git a/jbang/postgresql-gcp-secret-refresh/README.adoc b/jbang/postgresql-gcp-secret-refresh/README.adoc index fe4cf07..9bdcddd 100644 --- a/jbang/postgresql-gcp-secret-refresh/README.adoc +++ b/jbang/postgresql-gcp-secret-refresh/README.adoc @@ -209,16 +209,9 @@ Or run it even shorter: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run postgresql-log.yaml ----- - This will give the following log: -[source,sh] +[source,bash] ---- 2023-07-06 13:51:47.793 INFO 24893 --- [ main] org.apache.camel.main.MainSupport : Apache Camel (JBang) 3.21.0 is starting 2023-07-06 13:51:48.024 INFO 24893 --- [ main] org.apache.camel.main.MainSupport : Using Java 11.0.16.1 with PID 24893. Started by oscerd in /home/oscerd/workspace/apache-camel/camel-kamelets-examples/jbang/postgresql-gcp-secret-refresh diff --git a/jbang/prometheus/README.adoc b/jbang/prometheus/README.adoc index 476c297..8036f85 100644 --- a/jbang/prometheus/README.adoc +++ b/jbang/prometheus/README.adoc @@ -39,13 +39,6 @@ Then you can run this example using: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run * ----- - TIP: You can enable metrics for any Camel integration by using the `--metrics` option, such as `camel run * --metrics` === Run directly from github @@ -54,7 +47,7 @@ The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/prometheus +$ camel runhttps://github.com/apache/camel-kamelets-examples/tree/main/jbang/prometheus ---- === Micrometer diff --git a/jbang/slack-source/README.adoc b/jbang/slack-source/README.adoc index db965be..4c323d6 100644 --- a/jbang/slack-source/README.adoc +++ b/jbang/slack-source/README.adoc @@ -50,16 +50,10 @@ Then you can run this example using: $ camel run --properties=slack-integration.properties slack-source.yaml ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run --properties=slack-integration.properties slack-source.yaml ----- - You should see -``` +[source,bash] +---- Starting CamelJBang 2022-03-10 14:44:36.588 INFO 10188 --- [ main] e.camel.impl.engine.AbstractCamelContext : Detected: camel-debug JAR (enabling Camel Debugging) 2022-03-10 14:44:36.746 INFO 10188 --- [ main] org.apache.camel.main.BaseMainSupport : Auto-configuration summary @@ -88,7 +82,7 @@ Starting CamelJBang 2022-03-10 14:44:47.285 INFO 10188 --- [ main] e.camel.impl.engine.AbstractCamelContext : Stopped route1 (kamelet://slack-source) 2022-03-10 14:44:47.286 INFO 10188 --- [ main] ache.camel.impl.debugger.BacklogDebugger : Disabling debugger 2022-03-10 14:44:47.288 INFO 10188 --- [ main] e.camel.impl.engine.AbstractCamelContext : Apache Camel 3.15.0 (CamelJBang) shutdown in 12ms (uptime:9s659ms) -``` +---- === Run directly from github @@ -96,7 +90,7 @@ The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/slack-source +$ camel runhttps://github.com/apache/camel-kamelets-examples/tree/main/jbang/slack-source ---- === Developer Web Console diff --git a/jbang/type-converter/README.adoc b/jbang/type-converter/README.adoc index 37fce1c..a4adf13 100644 --- a/jbang/type-converter/README.adoc +++ b/jbang/type-converter/README.adoc @@ -33,14 +33,6 @@ Then you can run this example using: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run * ----- - - === Live reload You can run the example in dev mode which allows you to edit the example, diff --git a/jbang/xml-and-bean/README.adoc b/jbang/xml-and-bean/README.adoc index 7d73ff7..6a4039a 100644 --- a/jbang/xml-and-bean/README.adoc +++ b/jbang/xml-and-bean/README.adoc @@ -41,14 +41,6 @@ Then you can run this example using: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run * ----- - - === Live reload You can run the example in dev mode which allows you to edit the example, diff --git a/jbang/xslt-transform/README.adoc b/jbang/xslt-transform/README.adoc index b4b7df3..0c30d85 100644 --- a/jbang/xslt-transform/README.adoc +++ b/jbang/xslt-transform/README.adoc @@ -33,13 +33,6 @@ Then you can run this example using: $ camel run * ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] ----- -$ jbang camel@apache/camel run * ----- - === Live updates of message transformation You can do live changes to the stylesheet and see the output in real-time with Camel JBang by running: