Namespaces

Types in Fake

Type ProcessHelper

Namespace Fake

Methods

Properties

Public static methods

String[] appSettings(string key)

Returns the AppSettings for the key - Splitted on ;

FSharpAsync<int> asyncShellExec(ExecParams args)

FSharpOption<Tuple<a, b>> boolParam<a, b>(a paramName, bool paramValue)

bool execProcess(FSharpFunc<ProcessStartInfo, Unit> infoAction, TimeSpan timeOut)

int ExecProcess(FSharpFunc<ProcessStartInfo, Unit> infoAction, TimeSpan timeOut)

int execProcess2(FSharpFunc<ProcessStartInfo, Unit> infoAction, TimeSpan timeOut, bool silent)

bool execProcess3(FSharpFunc<ProcessStartInfo, Unit> infoAction, TimeSpan timeOut)

int execProcessAndReturnExitCode(FSharpFunc<ProcessStartInfo, Unit> infoAction, TimeSpan timeOut)

Tuple<bool, List<string>, List<string>> ExecProcessAndReturnMessages(FSharpFunc<ProcessStartInfo, Unit> infoAction, TimeSpan timeOut)

int ExecProcessWithLambdas(FSharpFunc<ProcessStartInfo, Unit> infoAction, TimeSpan timeOut, bool silent, FSharpFunc<string, Unit> errorF, FSharpFunc<string, Unit> messageF)

string findFile(IEnumerable<string> dirs, string file)

Searches the given directories for the given file, failing if not found

string findPath(string settingsName, string tool)

Tries to find the tool via AppSettings. If no path has the right tool we are trying the PATH system variable.

FSharpFunc<IEnumerable<string>, FSharpList<FSharpOption<Tuple<a, string>>>> multipleStringParams<a>(a paramName)

FSharpOption<Tuple<a, string>> optionParam<a, b>(a paramName, FSharpOption<b> paramValue)

string parametersToString(string flagPrefix, string delimiter, IEnumerable<FSharpOption<Tuple<string, string>>> parameters)

string quote(string str)

Adds quotes around the string

string quoteIfNeeded(string str)

Adds quotes around the string if needed

void setEnvironmentVariables(ProcessStartInfo startInfo, IEnumerable<Tuple<string, string>> environmentSettings)

sets the environment Settings for the given startInfo existing values will be overrriden

FSharpOption<Tuple<a, string>> stringParam<a>(a paramName, string paramValue)

string toParam(string x)

Adds quotes and a blank around the string

FSharpOption<string> tryFindFile(IEnumerable<string> dirs, string file)

Searches the given directories for all occurrences of the given file name

FSharpFunc<a, a> UseDefaults<a>()

Use default Parameters

Public properties

ExecParams defaultParams get;

bool enableProcessTracing get; set;

bool redirectOutputToTrace get; set;

FSharpFunc<ExecParams, int> shellExec get;

Execute an external program and return the exit code.