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§
Structs§
- Script
Scriptrepresents a single script.- Script
RunConfig ScriptRunConfigallows to define own configuration used to run a script.
Enums§
- Scripting
Language - Enum type representing a scripting language.
Constants§
- SCRIPT_
FILE_ PATH_ PLACEHOLDER - Constant used as a placeholder for a script file path. See
ScriptRunConfigdocs.