ProcessHelper Module
Types
| Type | Description |
|
A process result including error code, message log and errors. |
Functions and values
| Function or value |
Description
|
Full Usage:
ExecProcessAndReturnMessages configProcessStartInfoF timeOut
Parameters:
ProcessStartInfo -> unit
timeOut : TimeSpan
Returns: ProcessResult
|
Runs the given process and returns the process result. ## Parameters - `configProcessStartInfoF` - A function which overwrites the default ProcessStartInfo. - `timeOut` - The timeout for the process.
|
Full Usage:
ExecProcessWithLambdas configProcessStartInfoF timeOut silent errorF messageF
Parameters:
ProcessStartInfo -> unit
timeOut : TimeSpan
silent : bool
errorF : string -> unit
messageF : string -> unit
Returns: int
|
Runs the given process and returns the exit code. ## Parameters - `configProcessStartInfoF` - A function which overwrites the default ProcessStartInfo. - `timeOut` - The timeout for the process. - `silent` - If this flag is set then the process output is redirected to the given output functions `errorF` and `messageF`. - `errorF` - A function which will be called with the error log. - `messageF` - A function which will be called with the message log.
|
Full Usage:
directExec configProcessStartInfoF
Parameters:
ProcessStartInfo -> unit
Returns: bool
|
Runs the given process, waits for its completion and returns if it succeeded.
|
Full Usage:
environVarOrNone name
Parameters:
string
Returns: string option
|
Retrieves the environment variable or None
|
Full Usage:
fireAndForget configProcessStartInfoF
Parameters:
ProcessStartInfo -> unit
|
Starts the given process and returns immediatly.
|
Full Usage:
isValidPath path
Parameters:
string
Returns: bool
|
Detects whether the given path does not contains invalid characters.
|
Full Usage:
pathDirectories
Returns: string seq
|
Gets the list of valid directories included in the PATH environment variable.
|
|
Modifies the ProcessStartInfo according to the platform semantics
|
Full Usage:
separated delimiter items
Parameters:
string
items : string seq
Returns: string
Modifiers: inline |
Converts a sequence of strings to a string with delimiters
|
Full Usage:
splitEnvironVar name
Parameters:
string
Returns: string list
|
Splits the entries of an environment variable and removes the empty ones.
|
Full Usage:
toLines text
Parameters:
string seq
Returns: string
Modifiers: inline |
Converts a sequence of strings into a string separated with line ends
|
Full Usage:
tryFindFileOnPath file
Parameters:
string
Returns: string option
|
Searches the current directory and the directories within the PATH environment variable for the given file. If successful returns the full path to the file. ## Parameters - `file` - The file to locate
|
Paket