This is part of the Fake.Core.Process module.
Proc
Module to start or run processes, used in combination with the CreateProcess
API.
Example
1: 2: 3: 4: 5: 6: |
|
module CreateProcess
from Fake.Core.CreateProcessExt
--------------------
module CreateProcess
from Fake.Core
--------------------
module CreateProcess
from Fake.Core.CreateProcessDotNetExt
--------------------
type CreateProcess<'TRes> =
private { InternalCommand: Command
TraceCommand: bool
InternalWorkingDirectory: string option
InternalEnvironment: EnvMap option
Streams: StreamSpecs
Hook: IProcessHook<'TRes> }
member Command : Command
member CommandLine : string
member Environment : EnvMap option
member WorkingDirectory : string option
from Fake.Core
Functions and values
Function or value | Description |
Proc.run(c)
Signature: c:CreateProcess<'?8559> -> '?8559
Type parameters: '?8559 |
Like |
Proc.start(c)
Signature: c:CreateProcess<'?8555> -> Task<'?8555>
Type parameters: '?8555 |
Starts the given process and waits for the |
Proc.startAndAwait(c)
Signature: c:CreateProcess<'?8557> -> Async<'?8557>
Type parameters: '?8557 |
Convenience method when you immediatly want to await the result of 'start', just note that when used incorrectly this might lead to race conditions (ie if you use StartAsTask and access reference cells in CreateProcess after that returns) |
Proc.startRaw(c)
Signature: c:CreateProcess<'?8551> -> Task<AsyncProcessResult<'?8551>>
Type parameters: '?8551 |
Starts a process. The process has been started successfully after the returned task has been completed.
After the task has been completed you retrieve two other tasks:
- One Note: The |
Proc.startRawSync(c)
Signature: c:CreateProcess<'?8553> -> AsyncProcessResult<'?8553>
Type parameters: '?8553 |
Similar to |