kerneltime commented on code in PR #8050:
URL: https://github.com/apache/ozone/pull/8050#discussion_r1989819489
##########
hadoop-hdds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/container/ListSubcommand.java:
##########
@@ -76,6 +76,11 @@ public class ListSubcommand extends ScmSubcommand {
description = "Container replication (ONE, THREE for Ratis, " +
"rs-6-3-1024k for EC)")
private String replication;
+
+ @Option(names = {"--json"},
+ description = "Output the entire list in JSON array format",
Review Comment:
Yeah, I was trying to avoid changing the existing behavior of the CLI, as it
would be good to tread CLI output as a contract. I ran into JSON parsing errors
when analyzing a bunch of returned containers. `jq` works fine with streaming
in the container JSONs, but it would be good to have JSON array as per speck as
well.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]