[jboss-jira] [JBoss JIRA] (WFWIP-35) Colors are printed in non interactive mode when echo-command is enabled
Jean-Francois Denise (JIRA)
issues at jboss.org
Mon May 7 12:14:00 EDT 2018
[ https://issues.jboss.org/browse/WFWIP-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13572221#comment-13572221 ]
Jean-Francois Denise commented on WFWIP-35:
-------------------------------------------
[~iweiss], I think it would be safer to only enable color in interactive session. So for example:
- jboss-cli.sh -c
- jboss-cli.sh < my file.txt
Other cases (--file, --commands and programatic usage without enabling the console) should not enable colouring.
I have worked on a fix for it: https://github.com/wildfly/wildfly-core/commit/4c8451196884f54558ebe6c29133e03fc3361381
You can integrate it in your PR.
JF
> Colors are printed in non interactive mode when echo-command is enabled
> -----------------------------------------------------------------------
>
> Key: WFWIP-35
> URL: https://issues.jboss.org/browse/WFWIP-35
> Project: WildFly WIP
> Issue Type: Bug
> Reporter: Erich Duda
> Assignee: Ingo Weiss
> Priority: Blocker
> Labels: WFCORE-3577
>
> If you execute CLI in following non-interactive way, colors are printed out. This can break users automation and do the output hard readable.
> {code}
> ./bin/jboss-cli.sh --file=commands.txt --echo-command
> {code}
> {code:title=commands.txt}
> embed-server
> batch
> :read-attribute(name=server-state)
> list-batch
> run-batch
> exit
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list