Class: ExecuteCommand
actions/ExecuteCommand.ExecuteCommand
This is just a wrapper for CommandAction that allows the commands string without an options object. Should only be used by the API. Internally go directly to CommandAction
Implements
Constructors
constructor
• new ExecuteCommand(graph)
Parameters
| Name | Type |
|---|---|
graph | Graph |
Defined in
actions/ExecuteCommand.ts:13
Properties
commandAction
• Private commandAction: CommandAction
Defined in
actions/ExecuteCommand.ts:11
Methods
run
▸ run(targets, command, args?): Promise<ActionReturnValue>
Parameters
| Name | Type |
|---|---|
targets | [Target[]] |
command | string |
args | CommandOptions |
Returns
Promise<ActionReturnValue>
Implementation of
Defined in
actions/ExecuteCommand.ts:17