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-jbang-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new 126f4f5  Rename send-test to tui-hello-world with welcome route
126f4f5 is described below

commit 126f4f53a2f6f29ec38037773238908a30d286b5
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu May 28 13:33:11 2026 +0200

    Rename send-test to tui-hello-world with welcome route
    
    Co-Authored-By: Claude <[email protected]>
---
 camel-jbang-example-catalog.json                   | 38 +++++++++++-----------
 send-test/README.md                                | 21 ------------
 tui-hello-world/README.md                          | 21 ++++++++++++
 {send-test => tui-hello-world}/metadata.json       |  4 +--
 .../tui-hello-world.yaml                           | 20 ++++++------
 5 files changed, 52 insertions(+), 52 deletions(-)

diff --git a/camel-jbang-example-catalog.json b/camel-jbang-example-catalog.json
index 43b758e..d88e50b 100644
--- a/camel-jbang-example-catalog.json
+++ b/camel-jbang-example-catalog.json
@@ -369,25 +369,6 @@
             "routes.camel.yaml"
         ]
     },
-    {
-        "name": "send-test",
-        "title": "Send Message Test",
-        "description": "Test sending messages to a running integration via TUI 
or CLI",
-        "level": "beginner",
-        "tags": [
-            "beginner",
-            "direct",
-            "send",
-            "tui"
-        ],
-        "bundled": true,
-        "requiresDocker": false,
-        "hasCitrusTests": false,
-        "files": [
-            "README.md",
-            "send-test.yaml"
-        ]
-    },
     {
         "name": "smart-log-analyzer",
         "title": "Smart Log Analyzer",
@@ -475,6 +456,25 @@
             "timer-log.camel.yaml"
         ]
     },
+    {
+        "name": "tui-hello-world",
+        "title": "TUI Hello World",
+        "description": "Say hello via TUI Send Message (F2) or CLI",
+        "level": "beginner",
+        "tags": [
+            "beginner",
+            "direct",
+            "send",
+            "tui"
+        ],
+        "bundled": true,
+        "requiresDocker": false,
+        "hasCitrusTests": false,
+        "files": [
+            "README.md",
+            "tui-hello-world.yaml"
+        ]
+    },
     {
         "name": "xslt",
         "title": "XSLT Transformation",
diff --git a/send-test/README.md b/send-test/README.md
deleted file mode 100644
index ded05ff..0000000
--- a/send-test/README.md
+++ /dev/null
@@ -1,21 +0,0 @@
-## Send Message Test
-
-This example has a `direct` route you can send messages to, and a `timer` 
route that ticks in the background.
-
-Use this to test sending messages via the TUI (F2 -> Send Message) or the CLI 
(`camel cmd send`).
-
-### How to run
-
-    camel run send-test.yaml
-
-### Send a message (CLI)
-
-    camel cmd send send-test --endpoint=direct:greet --body=World
-
-### Send a message (TUI)
-
-    camel tui
-
-Select the integration, press `F2`, choose `Send Message`, type a message 
body, and press Enter.
-
-Toggle the mode to `InOut` to see the reply ("Hello World!").
diff --git a/tui-hello-world/README.md b/tui-hello-world/README.md
new file mode 100644
index 0000000..faac927
--- /dev/null
+++ b/tui-hello-world/README.md
@@ -0,0 +1,21 @@
+## TUI Hello World
+
+A simple example to try the TUI Send Message feature.
+
+On startup, a welcome message is logged once. The `greet` route listens on 
`direct:greet` and replies with a greeting.
+
+### How to run
+
+    camel run tui-hello-world.yaml
+
+### Send a message via TUI
+
+    camel tui
+
+Select the integration, press `F2`, choose `Send Message`, type your name 
(e.g. `World`), and press Enter.
+
+Toggle the mode to `InOut` to see the reply (`Hello World!`).
+
+### Send a message via CLI
+
+    camel cmd send tui-hello-world --endpoint=direct:greet --body=World
diff --git a/send-test/metadata.json b/tui-hello-world/metadata.json
similarity index 53%
rename from send-test/metadata.json
rename to tui-hello-world/metadata.json
index ec98556..ace5b53 100644
--- a/send-test/metadata.json
+++ b/tui-hello-world/metadata.json
@@ -1,6 +1,6 @@
 {
-    "title": "Send Message Test",
-    "description": "Test sending messages to a running integration via TUI or 
CLI",
+    "title": "TUI Hello World",
+    "description": "Say hello via TUI Send Message (F2) or CLI",
     "tags": [
         "beginner",
         "direct",
diff --git a/send-test/send-test.yaml b/tui-hello-world/tui-hello-world.yaml
similarity index 60%
rename from send-test/send-test.yaml
rename to tui-hello-world/tui-hello-world.yaml
index 0e4751e..28db173 100644
--- a/send-test/send-test.yaml
+++ b/tui-hello-world/tui-hello-world.yaml
@@ -1,19 +1,19 @@
 - route:
-    id: greet
+    id: welcome
     from:
-      uri: direct:greet
+      uri: timer:welcome
+      parameters:
+        repeatCount: 1
       steps:
-        - log: "Received: ${body}"
         - setBody:
-            simple: "Hello ${body}!"
+            constant: "Welcome! Open the TUI (camel tui) and press F2 → Send 
Message to say hello."
+        - log: "${body}"
 
 - route:
-    id: ticker
+    id: greet
     from:
-      uri: timer:tick
-      parameters:
-        period: 5000
+      uri: direct:greet
       steps:
+        - log: "Received: ${body}"
         - setBody:
-            simple: "Tick at ${date:now:HH:mm:ss}"
-        - log: "${body}"
+            simple: "Hello ${body}!"

Reply via email to