C# Class SamirBoulema.TGit.Helpers.ProcessHelper

Mostrar archivo Open project: sboulema/TGit Class Usage Examples

Public Methods

Method Description
GitResult ( string workingDir, string commands ) : Task
GitResult ( string workingDir, string commands ) : string
RunTortoiseGitCommand ( string command, string args = "" ) : System.Threading.Tasks.Task
RunTortoiseGitFileCommand ( string command, string args = "", string filePath = "" ) : System.Threading.Tasks.Task
Start ( string application ) : void
Start ( string application, string arguments ) : void
StartProcessGit ( string commands, bool showAlert = true ) : Task

Execute a Git command and return true if output is non-empty

StartProcessGit ( string commands, bool showAlert = true ) : bool

Execute a Git command and return true if output is non-empty

StartProcessGitResult ( string commands ) : Task

Execute a Git command and return the output

StartProcessGitResult ( string commands ) : string

Execute a Git command and return the output

StartProcessGui ( string application, string args, string title, string branchName = "", OutputBox outputBox = null, OptionPageGrid options = null, string pushCommand = "" ) : Process
StartProcessGui ( string application, string args, string title, string branchName = "", OutputBox outputBox = null, string pushCommand = "" ) : Task
StartTortoiseGitProc ( string args ) : System.Threading.Tasks.Task
StartTortoiseGitProc ( string args ) : void

Private Methods

Method Description
OutputDataHandler ( object sendingProcess, DataReceivedEventArgs outLine ) : void
process_Exited ( object sender, EventArgs e ) : void

Method Details

GitResult() public static method

public static GitResult ( string workingDir, string commands ) : Task
workingDir string
commands string
return Task

GitResult() public static method

public static GitResult ( string workingDir, string commands ) : string
workingDir string
commands string
return string

RunTortoiseGitCommand() public static method

public static RunTortoiseGitCommand ( string command, string args = "" ) : System.Threading.Tasks.Task
command string
args string
return System.Threading.Tasks.Task

RunTortoiseGitFileCommand() public static method

public static RunTortoiseGitFileCommand ( string command, string args = "", string filePath = "" ) : System.Threading.Tasks.Task
command string
args string
filePath string
return System.Threading.Tasks.Task

Start() public static method

public static Start ( string application ) : void
application string
return void

Start() public static method

public static Start ( string application, string arguments ) : void
application string
arguments string
return void

StartProcessGit() public static method

Execute a Git command and return true if output is non-empty
public static StartProcessGit ( string commands, bool showAlert = true ) : Task
commands string Git command to be executed
showAlert bool Show an alert dialog when error output is non-empty
return Task

StartProcessGit() public static method

Execute a Git command and return true if output is non-empty
public static StartProcessGit ( string commands, bool showAlert = true ) : bool
commands string Git command to be executed
showAlert bool Show an alert dialog when error output is non-empty
return bool

StartProcessGitResult() public static method

Execute a Git command and return the output
public static StartProcessGitResult ( string commands ) : Task
commands string Git command to be executed
return Task

StartProcessGitResult() public static method

Execute a Git command and return the output
public static StartProcessGitResult ( string commands ) : string
commands string Git command to be executed
return string

StartProcessGui() public static method

public static StartProcessGui ( string application, string args, string title, string branchName = "", OutputBox outputBox = null, OptionPageGrid options = null, string pushCommand = "" ) : Process
application string
args string
title string
branchName string
outputBox OutputBox
options OptionPageGrid
pushCommand string
return System.Diagnostics.Process

StartProcessGui() public static method

public static StartProcessGui ( string application, string args, string title, string branchName = "", OutputBox outputBox = null, string pushCommand = "" ) : Task
application string
args string
title string
branchName string
outputBox OutputBox
pushCommand string
return Task

StartTortoiseGitProc() public static method

public static StartTortoiseGitProc ( string args ) : System.Threading.Tasks.Task
args string
return System.Threading.Tasks.Task

StartTortoiseGitProc() public static method

public static StartTortoiseGitProc ( string args ) : void
args string
return void