C# Class GooglePlayServices.CommandLine

Mostra file Open project: googlesamples/unity-jar-resolver Class Usage Examples

Public Methods

Method Description
FindExecutable ( string executable ) : string

Locate an executable in the system path.

GetExecutableExtension ( ) : string

Get an executable extension.

Run ( string toolPath, string arguments, string workingDirectory = null, string>.Dictionary envVars = null, IOHandler ioHandler = null ) : System.Result

Execute a command line tool.

RunAsync ( string toolPath, string arguments, CompletionHandler completionDelegate, string workingDirectory = null, string>.Dictionary envVars = null, IOHandler ioHandler = null ) : void

Asynchronously execute a command line tool, calling the specified delegate on completion.

SplitLines ( string multilineString ) : string[]

Split a string into lines using newline, carriage return or a combination of both.

Method Details

FindExecutable() public static method

Locate an executable in the system path.
public static FindExecutable ( string executable ) : string
executable string
return string

GetExecutableExtension() public static method

Get an executable extension.
public static GetExecutableExtension ( ) : string
return string

Run() public static method

Execute a command line tool.
public static Run ( string toolPath, string arguments, string workingDirectory = null, string>.Dictionary envVars = null, IOHandler ioHandler = null ) : System.Result
toolPath string Tool to execute.
arguments string String to pass to the tools' command line.
workingDirectory string Directory to execute the tool from.
envVars string>.Dictionary Additional environment variables to set for the command.
ioHandler IOHandler Allows a caller to provide interactive input and also handle /// both output and error streams from a single delegate.
return System.Result

RunAsync() public static method

Asynchronously execute a command line tool, calling the specified delegate on completion.
public static RunAsync ( string toolPath, string arguments, CompletionHandler completionDelegate, string workingDirectory = null, string>.Dictionary envVars = null, IOHandler ioHandler = null ) : void
toolPath string Tool to execute.
arguments string String to pass to the tools' command line.
completionDelegate CompletionHandler Called when the tool completes.
workingDirectory string Directory to execute the tool from.
envVars string>.Dictionary Additional environment variables to set for the command.
ioHandler IOHandler Allows a caller to provide interactive input and also handle /// both output and error streams from a single delegate.
return void

SplitLines() public static method

Split a string into lines using newline, carriage return or a combination of both.
public static SplitLines ( string multilineString ) : string[]
multilineString string String to split into lines
return string[]