show
Output of --help=show
The following help text is generated by ecflow_client --help=show
show
----
Used to print state of the definition returned from the server to standard output.
This command can *only* be used in a group command, and will only work if it is
preceded with a get command. See examples below.
Argument(s):
output: (optional) [ defs | state | migrate ]
# defs:
# Return the definition structure only, without any state information.
# Necessary `extern`s are automatically added, allowing the output to be
# reloaded into the server e.g., --group="get ; show"
# This is the default if no `output` argument is provided.
#
# state:
# Return definition structure along with all the state information.
# Output includes the trigger expressions' abstract syntax tree (as comment).
# Does not include the edit history
#
# migrate:
# Return definition structure along with all the state information.
# The node state is shown in the comments.
# Use this format to migrate the definition to future version of ecflow.
# The output includes edit history but excludes externs.
# When the definition is reloaded *NO* checking is done.
The following shows a summary of the features associated with each choice
DEFS STATE MIGRATE
Auto generate externs Yes Yes No
Checking on reload Yes Yes No
Edit History No No Yes
trigger AST No Yes No
Usage:
--group="get ; show"
--group="get ; show defs" # same as the previous example
--group="get ; show state" # Show all state for the node tree
--group="get ; show migrate" # Shows state and allows migration
--group="get=/s1; show" # show state for the node only
--group="get=/s1; show state"
The client considers, for both user and task commands, the following environment variables:
ECF_HOST <string> [mandatory*]
The main server hostname; default value is 'localhost'
ECF_PORT <int> [mandatory*]
The main server port; default value is '3141'
ECF_SSL <any> [optional*]
Enable secure communication between client and server.
ECF_HOSTFILE <string> [optional]
File that lists alternate hosts to try, if connection to main host fails
ECF_HOSTFILE_POLICY <string> [optional]
The policy ('task' or 'all') to define which commands consider using alternate hosts.
The options marked with (*) must be specified in order for the client to communicate
with the server, either by setting the environment variables or by specifying the
command line options.
See also
Protocol reference for ShowCmd — the request/reply payloads exchanged with the server and the C++ command class that implements this command.