You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2026/05/14 07:58:24 UTC
(camel) 03/10: CAMEL-23514: Pass metrics flag to ASCII renderer in CLI route-diagram command
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch CAMEL-23514-ascii-diagram-metrics
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 2e927458a573d79c9c7dd2fbf4d364b9199d25c7
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu May 14 09:28:42 2026 +0200
CAMEL-23514: Pass metrics flag to ASCII renderer in CLI route-diagram command
The --metric flag was only passed to the image renderer. Now also
passed to RouteDiagramAsciiRenderer for ascii/unicode themes.
Co-Authored-By: Claude Opus 4.6 (1M context) <no...@anthropic.com>
Signed-off-by: Claus Ibsen <cl...@gmail.com>
---
.../camel/dsl/jbang/core/commands/action/CamelRouteDiagramAction.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelRouteDiagramAction.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelRouteDiagramAction.java
index cde562c5235a..61084a5e9c63 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelRouteDiagramAction.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelRouteDiagramAction.java
@@ -211,7 +211,7 @@ public class CamelRouteDiagramAction extends ActionWatchCommand {
if (isTextTheme()) {
RouteDiagramAsciiRenderer asciiRenderer
- = new RouteDiagramAsciiRenderer(engine.getNodeWidth(), isUnicodeTheme());
+ = new RouteDiagramAsciiRenderer(engine.getNodeWidth(), isUnicodeTheme(), pid > 0 && metric);
String ascii = asciiRenderer.renderDiagram(layoutRoutes, currentY);
if (output != null) {