C# Class AvalonStudio.CommandLineTools.PlatformSupport

Afficher le fichier Open project: VitalElement/AvalonStudio

Méthodes publiques

Méthode Description
CheckExecutableAvailability ( string fileName ) : bool

Checks whether a script executable is available in the user's shell

ExecuteShellCommand ( string commandName, string args ) : ShellExecuteResult
ExecuteShellCommand ( string commandName, string args, DataReceivedEventArgs>.Action outputReceivedCallback, DataReceivedEventArgs>.Action errorReceivedCallback = null, bool resolveExecutable = true, string workingDirectory = "", bool executeInShell = true ) : int
ResolveFullExecutablePath ( string fileName, bool returnNullOnFailure = true ) : string

Attempts to locate the full path to a script

Private Methods

Méthode Description
PlatformSupport ( ) : AvalonStudio.Platforms

Method Details

CheckExecutableAvailability() public static méthode

Checks whether a script executable is available in the user's shell
public static CheckExecutableAvailability ( string fileName ) : bool
fileName string
Résultat bool

ExecuteShellCommand() public static méthode

public static ExecuteShellCommand ( string commandName, string args ) : ShellExecuteResult
commandName string
args string
Résultat ShellExecuteResult

ExecuteShellCommand() public static méthode

public static ExecuteShellCommand ( string commandName, string args, DataReceivedEventArgs>.Action outputReceivedCallback, DataReceivedEventArgs>.Action errorReceivedCallback = null, bool resolveExecutable = true, string workingDirectory = "", bool executeInShell = true ) : int
commandName string
args string
outputReceivedCallback DataReceivedEventArgs>.Action
errorReceivedCallback DataReceivedEventArgs>.Action
resolveExecutable bool
workingDirectory string
executeInShell bool
Résultat int

ResolveFullExecutablePath() public static méthode

Attempts to locate the full path to a script
public static ResolveFullExecutablePath ( string fileName, bool returnNullOnFailure = true ) : string
fileName string
returnNullOnFailure bool
Résultat string