Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for WFCORE-3363, CLI to output JSON #2903

Merged
merged 1 commit into from Nov 14, 2017

Conversation

jfdenise
Copy link
Contributor

@jfdenise jfdenise commented Oct 23, 2017

@wildfly-ci
Copy link

Full integration - Windows Build 4458 outcome was FAILURE using a merge of 518a148
Summary: Execution timeout (new); tests passed: 4069, ignored: 94 Build time: 02:30:29

@wildfly-ci
Copy link

Full integration - Windows Build 4461 outcome was FAILURE using a merge of 518a148
Summary: Tests passed: 972, ignored: 31; exit code 1 Build time: 00:18:40

@@ -97,6 +98,9 @@ Usage:
--command-timeout - The maximum amount of seconds the CLI will wait for a
command to complete.

--output-json - makes the CLI to display operation responses using JSON syntax.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/makes/causes

@bstansberry
Copy link
Contributor

Minor language thing in the help text aside, looks good!

@wildfly-ci
Copy link

Full integration - Windows Build 4485 outcome was FAILURE using a merge of 2b5e7c1
Summary: Execution timeout (new); tests passed: 4251, ignored: 96 Build time: 02:30:18

@@ -89,7 +89,7 @@ public void handle(CommandContext ctx) throws CommandLineException {
try {
final ModelNode result = ctx.execute(op, "Operation request");
if (Util.isSuccess(result)) {
ctx.printLine(result.toString());
ctx.printDMR(result);
} else {
throw new CommandLineException(result.toString());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I commented on https://developer.jboss.org/wiki/CLI-OutputJSON re: exception handling (i.e. I think this is right.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants