Claus Ibsen created CAMEL-25390:
-----------------------------------
Summary: camel-cli-connector - Always reply to CLI actions,
including errors and acks
Key: CAMEL-25390
URL: https://issues.apache.org/jira/browse/CAMEL-25390
Project: Camel
Issue Type: Sub-task
Components: camel-jbang
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 4.24.0
* {{FileCliConnectorTransport}} always writes an output file: the result, or
{{\{"status":"error","message":...,"action":...\}}} when the action reports an
error via {{CliActionOutput.error()}}, the action is unknown, or dispatch
throws.
* Fire-and-forget actions (route start/stop/suspend/resume, processor
enable/disable, gc, reload, reset-stats, logger) write an ack ({{status:
success}} or the error).
* Share the error mapping with {{WebSocketCliConnectorTransport}} so both
transports behave the same.
_Claude Code on behalf of davsclaus (Claus Ibsen)_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)