[jboss-jira] [JBoss JIRA] (AS7-2696) CLI output should be simplifed when running a command

Alexey Loubyansky (Commented) (JIRA) jira-events at lists.jboss.org
Thu Nov 17 13:51:40 EST 2011


    [ https://issues.jboss.org/browse/AS7-2696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643764#comment-12643764 ] 

Alexey Loubyansky commented on AS7-2696:
----------------------------------------

Well, I understand what you are saying :)
And I agree that the result logging is unfriendly. It's native toString() format of ModelNode.
For operation requests (you executed an operation request, not a command) it's gonna be like that.

Now look, here I add server-group command
[domain at localhost:9999 /] command add --node-type=server-group --command-name=server-group

Now I can use it to add, remove and modify server groups (tab-completion supported)
[domain at localhost:9999 /] server-group add --name=mysg --profile=ha --socket-binding-group=ha-sockets --socket-binding-port-offset=1000
domain-results
  step-1=n/a
server-operations=n/a

So, we could have this command "built-in" by default. As you can see, its results are also confusing. And that deserves an issue.
If you want to create issues for this you can create two
- add server-group command;
- improve result reporting for generic type commands (the server-group above belongs to this kind, as well as data-source, jms-queue, etc) in the domain mode.
                
> CLI output should be simplifed when running a command
> -----------------------------------------------------
>
>                 Key: AS7-2696
>                 URL: https://issues.jboss.org/browse/AS7-2696
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: CLI
>            Reporter: Jim Tyrrell
>            Assignee: Alexey Loubyansky
>              Labels: eap6-ux
>
> When running a command like the following:
> [domain at 192.168.0.10:9999 /] /server-group=jb248-group:add(profile=ha,socket-binding-group=ha-sockets,socket-binding-port-offset=1000)
> {
>     "outcome" => "success",
>     "result" => {
>         "domain-results" => {"step-1" => undefined},
>         "server-operations" => undefined
>     }
> }
> Showing anything more then success is problematic and showing those two lines of undefined is scary as it makes me think something did not work correctly.  It would be nice if just a success message was posted.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list