C# Класс SamirBoulema.TGit.Helpers.ProcessHelper

Показать файл Открыть проект Примеры использования класса

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

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

Приватные методы

Метод Описание
OutputDataHandler ( object sendingProcess, DataReceivedEventArgs outLine ) : void
process_Exited ( object sender, EventArgs e ) : void

Описание методов

GitResult() публичный статический Метод

public static GitResult ( string workingDir, string commands ) : Task
workingDir string
commands string
Результат Task

GitResult() публичный статический Метод

public static GitResult ( string workingDir, string commands ) : string
workingDir string
commands string
Результат string

RunTortoiseGitCommand() публичный статический Метод

public static RunTortoiseGitCommand ( string command, string args = "" ) : System.Threading.Tasks.Task
command string
args string
Результат System.Threading.Tasks.Task

RunTortoiseGitFileCommand() публичный статический Метод

public static RunTortoiseGitFileCommand ( string command, string args = "", string filePath = "" ) : System.Threading.Tasks.Task
command string
args string
filePath string
Результат System.Threading.Tasks.Task

Start() публичный статический Метод

public static Start ( string application ) : void
application string
Результат void

Start() публичный статический Метод

public static Start ( string application, string arguments ) : void
application string
arguments string
Результат void

StartProcessGit() публичный статический Метод

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
Результат Task

StartProcessGit() публичный статический Метод

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
Результат bool

StartProcessGitResult() публичный статический Метод

Execute a Git command and return the output
public static StartProcessGitResult ( string commands ) : Task
commands string Git command to be executed
Результат Task

StartProcessGitResult() публичный статический Метод

Execute a Git command and return the output
public static StartProcessGitResult ( string commands ) : string
commands string Git command to be executed
Результат string

StartProcessGui() публичный статический Метод

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
Результат System.Diagnostics.Process

StartProcessGui() публичный статический Метод

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
Результат Task

StartTortoiseGitProc() публичный статический Метод

public static StartTortoiseGitProc ( string args ) : System.Threading.Tasks.Task
args string
Результат System.Threading.Tasks.Task

StartTortoiseGitProc() публичный статический Метод

public static StartTortoiseGitProc ( string args ) : void
args string
Результат void