Skip to main content

NewPluginTaskExecutionContext

Creates a new PluginTaskExecutionContext by wrapping an existing pluginsCore.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 any provided options. This function is used to extend or modify the behavior of a standard task execution context for plugin-specific needs.

Parameters

NameTypeDescription
tcpluginsCore.TaskExecutionContextThe base task execution context to be wrapped and extended.
options...PluginTaskExecutionContextOptionA variadic list of options to apply to the new plugin task execution context, allowing for customization of its properties.

Returns

TypeDescription
pluginsCore.TaskExecutionContextThe new plugin task execution context, which wraps the original context and incorporates any specified options.