NewPluginTaskExecutionContext
Creates a new PluginTaskExecutionContext by wrapping an existing TaskExecutionContext and applying any provided options. This function initializes the context with metadata and overrides from the original context.
def NewPluginTaskExecutionContext(
tc: pluginsCore.TaskExecutionContext,
options: ...PluginTaskExecutionContextOption
) - > pluginsCore.TaskExecutionContext
Creates a new plugin task execution context by wrapping an existing task execution context and applying optional configurations. This function is used to extend or modify the behavior of a standard task execution context for plugin-specific needs.
Parameters
| Name | Type | Description |
|---|---|---|
| tc | pluginsCore.TaskExecutionContext | The base task execution context to be wrapped and extended. |
| options | ...PluginTaskExecutionContextOption | Optional functions that apply configurations or modifications to the newly created plugin task execution context. |
Returns
| Type | Description |
|---|---|
pluginsCore.TaskExecutionContext | The new plugin-specific task execution context. |