Documentation ¶
Index ¶
Constants ¶
const Monkey monkeyEngine = 0xD1
Monkey is a mapping for the Monkey (github.com/skx/monkey) Scripting engine. This can be used to run Monkey scripts directly and can be registered by the 'task.RegisterScript' function to include the engine in the XMT task runtime.
Variables ¶
This section is empty.
Functions ¶
func Invoke ¶
Invoke will use the Monkey (github.com/skx/monkey) Scripting engine. This can be used to run code not built in at compile time. The only argument is the script that is to be run. The results are the output of the console (all print* together) and any errors that may occur or syntax errors.
This will capture the output of all the console writes and adds a 'print*' statement as a shortcut to be used. Another additional function 'exec' can be used to run commands natively. This function can take a vardict of strings to be the command line arguments.
func InvokeContext ¶
InvokeContext will use the Monkey (github.com/skx/monkey) Scripting engine. This can be used to run code not built in at compile time. A context is required to timeout the script execution and the script to be run, as a string. The results are the output of the console (all print* together) and any errors that may occur or syntax errors.
This will capture the output of all the console writes and adds a 'print*' statement as a shortcut to be used. Another additional function 'exec' can be used to run commands natively. This function can take a vardict of strings to be the command line arguments.
Context cancelation is UNSUPPORTED at this time. See: https://github.com/skx/monkey/issues/79
func InvokeEx ¶
InvokeEx will use the Monkey (github.com/skx/monkey) Scripting engine. This can be used to run code not built in at compile time. A context is required to timeout the script execution and the script to be run, as a string. The results are the output of the console (all print* together) and any errors that may occur or syntax errors.
This will capture the output of all the console writes and adds a 'print*' statement as a shortcut to be used. Another additional function 'exec' can be used to run commands natively. This function can take a vardict of strings to be the command line arguments.
This Ex function allows to specify a map that contains any starting variables to be supplied at runtime.
Context cancelation is UNSUPPORTED at this time. See: https://github.com/skx/monkey/issues/79
Types ¶
This section is empty.