[jboss-jira] [JBoss JIRA] (WFCORE-1614) Requesting CLI Equivalent of Remote Echo / set -x in non-interactive mode (from within scripts)
Jean-Francois Denise (JIRA)
issues at jboss.org
Mon Jun 27 04:51:01 EDT 2016
[ https://issues.jboss.org/browse/WFCORE-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257209#comment-13257209 ]
Jean-Francois Denise commented on WFCORE-1614:
----------------------------------------------
By deferring the output of the command at execution time (and not declaration time), I am getting the following output that should match what you are expecting:
[disconnected /] embed-server
[standalone at embedded /] ls system-property
[standalone at embedded /] try
[standalone at embedded /] :read-attribute(name=foo)
[standalone at embedded /] /system-property=catch:add(value=bar)
{"outcome" => "success"}
[standalone at embedded /] /system-property=finally:add(value=bar)
{"outcome" => "success"}
[standalone at embedded /] /system-property=*:read-resource
{
"outcome" => "success",
"result" => [
{
"address" => [("system-property" => "catch")],
"outcome" => "success",
"result" => {"value" => "bar"}
},
{
"address" => [("system-property" => "finally")],
"outcome" => "success",
"result" => {"value" => "bar"}
}
]
}
[standalone at embedded /] if (outcome == success) of /system-property=catch:read-attribute(name=value)
[standalone at embedded /] set prop=Catch\ block\ was\ executed
[standalone at embedded /] /system-property=finally:write-attribute(name=value, value=if)
{"outcome" => "success"}
[standalone at embedded /] reload
> Requesting CLI Equivalent of Remote Echo / set -x in non-interactive mode (from within scripts)
> -----------------------------------------------------------------------------------------------
>
> Key: WFCORE-1614
> URL: https://issues.jboss.org/browse/WFCORE-1614
> Project: WildFly Core
> Issue Type: Feature Request
> Components: CLI
> Reporter: Jean-Francois Denise
> Assignee: Jean-Francois Denise
> Fix For: 3.0.0.Alpha3
>
> Attachments: test.cli
>
>
> We are proposing here to add a Cli option (command line option and an XML element) to make the CLI to echo the command and its options in non interactive mode. This will help to match a given command and its output.
> For example, the "ls -l" command output would be:
> [standalone at localhost:9990 /] ls -l
> ATTRIBUTE VALUE TYPE
> launch-type STANDALONE STRING
> management-major-version 5 INT
> management-micro-version 0 INT
> management-minor-version 0 INT
> ...
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list