Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found here. If the API is already migrated you can check here if exists in a module. More information regarding the migration can be found here

Shell

Allows to exec shell operations synchronously and asynchronously.

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).