Nuke.Cola
Loading...
Searching...
No Matches
Nuke.Cola.Tooling.ToolExExecutor Class Reference

Public Member Functions

 ToolExExecutor (string toolPath)
 
IReadOnlyCollection< Output >? Execute (ArgumentStringHandlerEx arguments=default, string? workingDirectory=null, IReadOnlyDictionary< string, string >? environmentVariables=null, int? timeout=null, bool? logOutput=null, bool? logInvocation=null, Action< OutputType, string >? logger=null, Action< IProcess >? exitHandler=null, Action< StreamWriter >? input=null, Encoding? standardOutputEncoding=null, Encoding? standardInputEncoding=null)
 

Static Private Member Functions

static ? string GetToolPathOverride (string toolPath)
 
static BlockingCollection< Output > GetOutputCollection (Process process, Action< OutputType, string >? logger, Func< string, string > outputFilter)
 
static void LogInvocation (ProcessStartInfo startInfo, Func< string, string > outputFilter)
 

Private Attributes

readonly string _toolPath
 

Static Private Attributes

static readonly object _lock = new()
 

Detailed Description

Definition at line 160 of file ToolEx.cs.

Constructor & Destructor Documentation

◆ ToolExExecutor()

Nuke.Cola.Tooling.ToolExExecutor.ToolExExecutor ( string toolPath)

Definition at line 166 of file ToolEx.cs.

Member Function Documentation

◆ Execute()

IReadOnlyCollection< Output >? Nuke.Cola.Tooling.ToolExExecutor.Execute ( ArgumentStringHandlerEx arguments = default,
string? workingDirectory = null,
IReadOnlyDictionary< string, string >? environmentVariables = null,
int? timeout = null,
bool? logOutput = null,
bool? logInvocation = null,
Action< OutputType, string >? logger = null,
Action< IProcess >? exitHandler = null,
Action< StreamWriter >? input = null,
Encoding? standardOutputEncoding = null,
Encoding? standardInputEncoding = null )

Definition at line 171 of file ToolEx.cs.

◆ GetOutputCollection()

static BlockingCollection< Output > Nuke.Cola.Tooling.ToolExExecutor.GetOutputCollection ( Process process,
Action< OutputType, string >? logger,
Func< string, string > outputFilter )
staticprivate

Definition at line 266 of file ToolEx.cs.

◆ GetToolPathOverride()

static ? string Nuke.Cola.Tooling.ToolExExecutor.GetToolPathOverride ( string toolPath)
staticprivate

Definition at line 250 of file ToolEx.cs.

◆ LogInvocation()

static void Nuke.Cola.Tooling.ToolExExecutor.LogInvocation ( ProcessStartInfo startInfo,
Func< string, string > outputFilter )
staticprivate

Definition at line 298 of file ToolEx.cs.

Member Data Documentation

◆ _lock

readonly object Nuke.Cola.Tooling.ToolExExecutor._lock = new()
staticprivate

Definition at line 162 of file ToolEx.cs.

◆ _toolPath

readonly string Nuke.Cola.Tooling.ToolExExecutor._toolPath
private

Definition at line 164 of file ToolEx.cs.


The documentation for this class was generated from the following file: