C# 클래스 Code.Cake.RunCmdAliases

Small helper that uses cmd.exe to execute commands.
파일 보기 프로젝트 열기: SimpleGitVersion/SGV-Net

공개 메소드들

메소드 설명
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.

메소드 상세

RunCmd() 공개 정적인 메소드

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.
리턴 int

RunCmdSuccessful() 공개 정적인 메소드

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.
리턴 void