Script
Class representing the sourcing of a script.
Script
Bases: Source
Script class for applying changes to the execution environment.
Source code in maestrowf/datastructures/environment/script.py
__init__(source)
Initialize the Script class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
source |
The command for changing the execution environment. |
required |
Source code in maestrowf/datastructures/environment/script.py
apply(cmds)
Apply the Script source to the specified list of commands.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cmds |
List of commands to add source to. |
required |
Returns:
Type | Description |
---|---|
List of commands with the source prepended. |