The base class of every automation script command. More...
| Header: | #include <AutomationCommand> |
A command is one verb of the automation script language, for example create-target. A subclass gives its name, a description and a usage string for the help text. It validates a script action, and it executes the action against the script context and returns a CommandResult. A result can also tell the runner to stop the script with an exit code.
Commands are held as shared pointers in an AutomationCommandRegistry, keyed by name. The AutomationScriptRunner looks up the command for each script action, validates the action and executes it. An asynchronous command starts its work and returns at once, and the runner waits for the completion report before it goes on to the next action.
See also AutomationCommandRegistry and AutomationScriptRunner.