[
https://issues.jboss.org/browse/WFCORE-1614?page=com.atlassian.jira.plugi...
]
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@embedded /] ls system-property
[standalone@embedded /] try
[standalone@embedded /] :read-attribute(name=foo)
[standalone@embedded /] /system-property=catch:add(value=bar)
{"outcome" => "success"}
[standalone@embedded /] /system-property=finally:add(value=bar)
{"outcome" => "success"}
[standalone@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@embedded /] if (outcome == success) of
/system-property=catch:read-attribute(name=value)
[standalone@embedded /] set prop=Catch\ block\ was\ executed
[standalone@embedded /] /system-property=finally:write-attribute(name=value, value=if)
{"outcome" => "success"}
[standalone@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@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)