C# Class ToolBelt.Command

Class for running command line tools
Afficher le fichier Open project: jlyonsmith/ToolBelt

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
CreateScriptFile ( string script ) : string

Method Details

Command() public méthode

public Command ( string script, TextWriter outputWriter, TextWriter errorWriter, bool debugMode ) : System
script string
outputWriter System.IO.TextWriter
errorWriter System.IO.TextWriter
debugMode bool
Résultat System

Run() public méthode

public Run ( ) : int
Résultat int

Run() public static méthode

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.
Résultat int

Run() public static méthode

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
Résultat int

Run() public static méthode

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.
Résultat int

Run() public static méthode

public static Run ( string programAndArgs, string &output, bool debugMode ) : int
programAndArgs string
output string
debugMode bool
Résultat int

Run() public static méthode

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.
Résultat int