Module script

Module script 

Source
Expand description

Types representing scripts.

The most important types of this module are Script and ScriptingLanguage which enables of defining a scripts. Script internally store script’s content in a file and then executes Cmd. ScriptingLanguage defines the language in which the script is implemented. Currently, library supports 8 most popular scripting languages, but it is possible to support a custom ones via ScriptingLanguage::Other.

Script implements Runnable trait, and therefore it can be spawned using ProcessManagerHandle.

Modules§

builder
Alternative API for creating Script structure.

Structs§

Script
Script represents a single script.
ScriptRunConfig
ScriptRunConfig allows to define own configuration used to run a script.

Enums§

ScriptingLanguage
Enum type representing a scripting language.

Constants§

SCRIPT_FILE_PATH_PLACEHOLDER
Constant used as a placeholder for a script file path. See ScriptRunConfig docs.