public virtual IProcess StartProcess(ToolSettings toolSettings) { var arguments = toolSettings.GetArguments(); return(StartProcess(toolSettings.ToolPath, arguments.RenderForExecution(), arguments.RenderForOutput(), toolSettings.WorkingDirectory, toolSettings.EnvironmentVariables, toolSettings.ExecutionTimeout, toolSettings.LogOutput, toolSettings.LogLevelParser, arguments.FilterSecrets)); }
public static IProcess StartProcess(ToolSettings toolSettings) { var arguments = toolSettings.GetArguments(); return(StartProcess(toolSettings.ToolPath, arguments.RenderForExecution(), toolSettings.WorkingDirectory, toolSettings.EnvironmentVariables, toolSettings.ExecutionTimeout, toolSettings.LogOutput, toolSettings.LogInvocation, toolSettings.CustomLogger, arguments.FilterSecrets)); }
public override IProcess StartProcess(ToolSettings toolSettings, ProcessSettings processSettings = null) { var toolPath = toolSettings.ToolPath; var arguments = toolSettings.GetArguments(); ControlFlow.Assert(toolPath != null, "ToolPath was not set."); ControlFlow.Assert(File.Exists(toolPath), $"ToolPath '{toolPath}' does not exist."); processSettings = processSettings ?? new ProcessSettings(); return(StartProcess( toolPath, arguments.RenderForExecution(), toolSettings.WorkingDirectory, processSettings.EnvironmentVariables, processSettings.ExecutionTimeout, processSettings.RedirectOutput, processSettings.RedirectOutput ? new Func <string, string>(arguments.Filter) : null)); }
public static IProcess StartProcess(ToolSettings toolSettings) { return(ProcessManager.Instance.StartProcess(toolSettings)); }