C# 클래스 ToolBelt.Command

Class for running command line tools
파일 보기 프로젝트 열기: jlyonsmith/ToolBelt

공개 메소드들

메소드 설명
Command ( string script, TextWriter outputWriter, TextWriter errorWriter, bool debugMode ) : System
Run ( ) : int
Run ( string programAndArgs ) : int

Run the specified command through the shell specified in the COMSPEC environment variable. Output is sent to the default console output and error streams.

Run ( string programAndArgs, TextWriter outputWriter, TextWriter errorWriter, bool debugMode ) : int

Run the specified command through the shell specified in the COMSPEC or SHELL environment variable.

Run ( string programAndArgs, string &output ) : int

Run the specified command through the shell specified in the COMSPEC environment variable.

Run ( string programAndArgs, string &output, bool debugMode ) : int
Run ( string programAndArgs, string &output, string &error ) : int

Run the specified command through the shell specified in the COMSPEC environment variable.

비공개 메소드들

메소드 설명
CreateScriptFile ( string script ) : string

메소드 상세

Command() 공개 메소드

public Command ( string script, TextWriter outputWriter, TextWriter errorWriter, bool debugMode ) : System
script string
outputWriter System.IO.TextWriter
errorWriter System.IO.TextWriter
debugMode bool
리턴 System

Run() 공개 메소드

public Run ( ) : int
리턴 int

Run() 공개 정적인 메소드

Run the specified command through the shell specified in the COMSPEC environment variable. Output is sent to the default console output and error streams.
public static Run ( string programAndArgs ) : int
programAndArgs string The command to pass to the shell.
리턴 int

Run() 공개 정적인 메소드

Run the specified command through the shell specified in the COMSPEC or SHELL environment variable.
public static Run ( string programAndArgs, TextWriter outputWriter, TextWriter errorWriter, bool debugMode ) : int
programAndArgs string The command to pass to the shell.
outputWriter System.IO.TextWriter The stream to which the standard output stream will be redirected.
errorWriter System.IO.TextWriter The stream to which the standard error stream will be redirected.
debugMode bool Debug mode
리턴 int

Run() 공개 정적인 메소드

Run the specified command through the shell specified in the COMSPEC environment variable.
public static Run ( string programAndArgs, string &output ) : int
programAndArgs string The command to pass to the shell.
output string Interleaved results from standard output and standard error streams.
리턴 int

Run() 공개 정적인 메소드

public static Run ( string programAndArgs, string &output, bool debugMode ) : int
programAndArgs string
output string
debugMode bool
리턴 int

Run() 공개 정적인 메소드

Run the specified command through the shell specified in the COMSPEC environment variable.
public static Run ( string programAndArgs, string &output, string &error ) : int
programAndArgs string The command to pass to the shell.
output string Results from standard output stream.
error string Results from standard error stream.
리턴 int