C# Класс ToolBelt.Command

Class for running command line tools
Показать файл Открыть проект

Открытые методы

Метод Описание
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