Skip to main content

Module command

Expand description

Script resolution and the process each script type runs as.

Structsยง

CommandSpec ๐Ÿ”’
A process to run, as a plain value: no OS handles and no ambient state.

Enumsยง

ScriptType ๐Ÿ”’
How the connector launches an operator-supplied script.

Constantsยง

ENV_ALLOWLIST ๐Ÿ”’
HOST_CANDIDATES ๐Ÿ”’

Functionsยง

allowlisted_env ๐Ÿ”’
build_command ๐Ÿ”’
The process that runs script for operation: the script itself, or the PowerShell host running it.
resolve_host ๐Ÿ”’
The configured PowerShell host, else the first candidate found on PATH.
resolve_script_path ๐Ÿ”’
Resolves the SCRIPT credential to a canonical path, confined to script_root when set.
resolve_script_type ๐Ÿ”’
The launcher for script: the SCRIPT_TYPE credential when set, otherwise by extension.
strip_verbatim_path_prefix ๐Ÿ”’
Rewrites a \\?\C:\... verbatim disk path to C:\...; other paths are returned unchanged.