jbertram commented on PR #4980: URL: https://github.com/apache/activemq-artemis/pull/4980#issuecomment-2176275423
> I don't really think that it is in a spirit of Bash shell scripting. I'm not heavy into Bash shell scripting so I may not be the best judge of it's "spirit," but the fact that the [`jq`](https://jqlang.github.io/jq/) command exists and appears to be popular indicates that lots of folks are dealing with JSON from the shell. > It also assumes that jq or any other JSON tool is available, which is not necessary true. That's true, but given the popularity of JSON I think that's a relatively safe assumption. > If you are worried that proposed output is not clear or pretty, another way to go could be to add additional flag to output the list without decorations. My chief concern is that we don't needlessly complicate something that was designed to be very simple. If you want to treat the output of the CLI as an API (i.e. to be used in scripts and other commands) then you can't simply change it between minor versions because you'll break anybody who is already relying on the existing output format. If you want to eventually replace the existing output you must first deprecate it and provide a new flag or command. Then when a new major version is released we can remove the deprecated item. You can see how a small change like this can grow into something much larger. Of course, that's not to mention the subjective evaluation of what is _clear_ or _pretty_. Ultimately I think we should encourage folks to use tools the way they were designed to be used. In short, use the management API if you need an API and use the CLI for simple, human tasks. I recently [clarified the documentation](https://github.com/apache/activemq-artemis/blob/main/docs/user-manual/using-cli.adoc#command-line-interface) to this end. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For additional commands, e-mail: gitbox-h...@activemq.apache.org For further information, visit: https://activemq.apache.org/contact