|
| static IReadOnlyCollection< Output > | ExecuteWith (this Tool tool, ToolArguments args) |
| | Execute a tool with the arguments provided by the input record.
|
| |
| static ? IReadOnlyCollection< Output > | ExecuteWith (this ToolEx tool, ToolExArguments args) |
| | Execute a tool with standard input with the arguments provided by the input record.
|
| |
| static Tool | With (this Tool tool, ToolArguments args) |
| | Set individual Tool launching parameters and propagate the delegate further.
|
| |
| static ToolEx | With (this ToolEx tool, ToolExArguments args) |
| | Set individual Tool launching parameters and propagate the delegate further.
|
| |
| static ToolEx | With (this ToolEx tool, ToolArguments args) |
| | Set individual Tool launching parameters and propagate the delegate further.
|
| |
| static Tool | With (this Tool tool, ArgumentStringHandler 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) |
| | Set individual Tool launching parameters and propagate the delegate further.
|
| |
| static ToolEx | With (this ToolEx tool, ArgumentStringHandler 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) |
| | Set individual Tool launching parameters and propagate the delegate further.
|
| |
| static ToolArguments | SemanticLogging (Func< string, bool >? filter=null, Action< OutputType, string >? normalOutputLogger=null) |
| | Mark app output Debug/Info/Warning/Error based on its content rather than the stream they were added to.
|
| |
| static Tool | WithSemanticLogging (this Tool tool, Func< string, bool >? filter=null, Action< OutputType, string >? normalOutputLogger=null) |
| | Mark app output Debug/Info/Warning/Error based on its content rather than the stream they were added to.
|
| |
| static ToolEx | WithSemanticLogging (this ToolEx tool, Func< string, bool >? filter=null, Action< OutputType, string >? normalOutputLogger=null) |
| | Mark app output Debug/Info/Warning/Error based on its content rather than the stream they were added to.
|
| |
| static ToolArguments | EnvVar (string key, object value, bool includeParentEnvironment=true) |
| | A more comfortable passing of environment variables. This will also pass on parent environment.
|
| |
| static ToolArguments | EnvVars (bool includeParentEnvironment, params(string key, object value)[] items) |
| | A more comfortable passing of environment variables. This will also pass on parent environment.
|
| |
| static ToolArguments | EnvVars (params(string key, object value)[] items) |
| | A more comfortable passing of environment variables. This will also pass on parent environment.
|
| |
| static Tool | WithEnvVar (this Tool tool, string key, object value, bool includeParentEnvironment=true) |
| | A more comfortable passing of environment variables. This will also pass on parent environment.
|
| |
| static Tool | WithEnvVars (this Tool tool, bool includeParentEnvironment, params(string key, object value)[] items) |
| | A more comfortable passing of environment variables. This will also pass on parent environment.
|
| |
| static Tool | WithEnvVars (this Tool tool, params(string key, object value)[] items) |
| | A more comfortable passing of environment variables. This will also pass on parent environment.
|
| |
| static Tool | WithPathVar (this Tool tool, AbsolutePath path) |
| | Add an input path to this tool's PATH list. It won't be added if input path is already in there.
|
| |
| static ToolEx | WithEnvVar (this ToolEx tool, string key, object value, bool includeParentEnvironment=true) |
| | A more comfortable passing of environment variables. This will also pass on parent environment.
|
| |
| static ToolEx | WithEnvVars (this ToolEx tool, params(string key, object value)[] items) |
| | A more comfortable passing of environment variables. This will also pass on parent environment.
|
| |
| static ToolEx | WithEnvVars (this ToolEx tool, bool includeParentEnvironment, params(string key, object value)[] items) |
| | A more comfortable passing of environment variables. This will also pass on parent environment.
|
| |
| static ToolEx | WithPathVar (this ToolEx tool, AbsolutePath path) |
| | Add an input path to this tool's PATH list. It won't be added if input path is already in there.
|
| |
| static IEnumerable< Output > | RemoveAnsiEscape (this IEnumerable< Output > toolOutput) |
| | Removes ANSI escape sequences from the output of a Tool (remove color data for example)
|
| |
| static ToolEx | Pipe (this IEnumerable< Output > previous, ToolEx next, bool pipeError=false, bool close=true) |
| | Pipe the results of a tool into the standard input of the next tool. This is not exactly the same as real command line piping, the previous process needs to be finished first to pipe its output into the next one. This however gives the opportunity to transform / filter the output of previous tool with regular LINQ before passing it to the next one.
|
| |
| static ToolEx | WithInput (this ToolEx tool, IEnumerable< string > lines) |
| | Provide lines for standard input once the program is run. If the target program waits until end-of-stream queue closing the input stream with CloseInput.
|
| |
| static ToolEx | WithInput (this ToolEx tool, string line) |
| | Provide a single line for standard input once the program is run.
|
| |
| static ToolEx | CloseInput (this ToolEx tool) |
| | Explicitly close the standard input after other inputs have been queued. Some programs may freeze without this step.
|
| |
| static void | UpdatePathEnvVar () |
| | Attempt to update PATH of this process from user's environment variables.
|
| |
| static ValueOrError< Tool > | Use (string tool, Action? setup=null) |
| | Get a tool which should be in PATH, and provide an optional way to set it up automatically if it wasn't.
|
| |
| static ValueOrError< Tool > | ElseTrySetup (this ValueOrError< Tool > result, bool condition, string tool, Action setup) |
| | Try a different setup method for a Tool which may failed its installation.
|
| |
| static ValueOrError< Tool > | ElseTrySetup (this ValueOrError< Tool > result, string tool, Action setup) |
| | Try a different setup method for a Tool which may failed its installation.
|
| |