[
https://issues.apache.org/jira/browse/CAMEL-25396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on CAMEL-25396 started by Claus Ibsen.
-------------------------------------------
> camel-jbang - Commands must not hang without a TTY
> --------------------------------------------------
>
> Key: CAMEL-25396
> URL: https://issues.apache.org/jira/browse/CAMEL-25396
> Project: Camel
> Issue Type: Sub-task
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.24.0
>
>
> * {{CommandHelper.ReadConsoleTask}} treats EOF as stop.
> * Shared {{--duration=<time>}} on watch/follow commands (exit 0 on expiry).
> * Without a TTY: {{--watch}} without {{--duration}} runs once with a stderr
> warning; {{log}}, {{cmd receive}}, {{trace --action=dump}} default to
> {{--follow=false}}; {{infra log}} gets {{--follow}}; {{hawtio}} defaults
> {{--open-url=false}}.
> * Interactive-only commands ({{debug}}, {{nano}}, {{shell}}, {{edit}},
> {{tui}}, {{ask}} without a question, {{--prompt}}, {{get history --it}}) fail
> fast with exit 2 "requires an interactive terminal" (today {{debug}}
> busy-spins at 100% CPU).
> _Claude Code on behalf of davsclaus (Claus Ibsen)_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)