C# Class Code.Cake.RunCmdAliases

Small helper that uses cmd.exe to execute commands.
Exibir arquivo Open project: SimpleGitVersion/SGV-Net

Public Methods

Method Description
RunCmd ( this context, string commandLine, Action output = null ) : int

Runs cmd.exe with a command line and returns the process result value. The command line contains both the executable and its parameters.

RunCmdSuccessful ( this context, string commandLine ) : void

Runs cmd.exe with a command line and throws an exception if the command exits with a result that is not 0. The command line contains both the executable and its parameters.

Method Details

RunCmd() public static method

Runs cmd.exe with a command line and returns the process result value. The command line contains both the executable and its parameters.
public static RunCmd ( this context, string commandLine, Action output = null ) : int
context this The cake context.
commandLine string The command line to execute.
output Action Optional standard output lines collector.
return int

RunCmdSuccessful() public static method

Runs cmd.exe with a command line and throws an exception if the command exits with a result that is not 0. The command line contains both the executable and its parameters.
public static RunCmdSuccessful ( this context, string commandLine ) : void
context this The cake context.
commandLine string The command line to execute.
return void