Note: This API documentation is for FAKE version 4. The migration API documentation can be found here. The API documentation for the new fake 5 modules can be found here

Shell

Allows to exec shell operations synchronously and asynchronously.

Constructors

ConstructorDescription
new()
Signature: unit -> Shell

Static members

Static memberDescription
Shell.AsyncExec(cmd, args, dir)
Signature: (cmd:string * args:string option * dir:string option) -> Async<int>

Runs the given process asynchronously.

Parameters

  • cmd - The command which should be run in elavated context.
  • args - The process arguments (optional).
  • directory - The working directory (optional).
Shell.Exec(cmd, args, dir)
Signature: (cmd:string * args:string option * dir:string option) -> int

Runs the given process, waits for it's completion and returns the exit code.

Parameters

  • cmd - The command which should be run in elavated context.
  • args - The process arguments (optional).
  • directory - The working directory (optional).