Proc Module
Running of external command line tools. Shared by the providers that answer questions the compiler cannot answer alone - git state, MSBuild evaluation - without taking a library dependency on the tool. Nothing here throws: a missing executable, a timeout or a crash all surface as `None`, because a provider that throws takes the whole provided type down with it.
Types
| Type | Description |
|
|
Functions and values
| Function or value |
Description
|
Full Usage:
exists executable probeArguments
Parameters:
string
probeArguments : string
Returns: bool
|
Whether `executable` can be started at all
|
Full Usage:
tryOutputWith environment timeoutMs workingDirectory executable arguments
Parameters:
(string * string) list
timeoutMs : int
workingDirectory : string
executable : string
arguments : string
Returns: string option
|
|
Full Usage:
tryRun timeoutMs workingDirectory executable arguments
Parameters:
int
workingDirectory : string
executable : string
arguments : string
Returns: Result option
|
|
Full Usage:
tryRunWith environment timeoutMs workingDirectory executable arguments
Parameters:
(string * string) list
timeoutMs : int
workingDirectory : string
executable : string
arguments : string
Returns: Result option
|
Low resilience execution of a tool, with quick bail-out and fallback to None. stdin is redirected and closed immediately: a tool that decides to prompt gets EOF instead of blocking forever on a console that is not there.
|
Partas.TypeProvider