C# Class AvalonStudio.CommandLineTools.PlatformSupport

Show file Open project: VitalElement/AvalonStudio

Public Methods

Method 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

Method Description
PlatformSupport ( ) : AvalonStudio.Platforms

Method Details

CheckExecutableAvailability() public static method

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

ExecuteShellCommand() public static method

public static ExecuteShellCommand ( string commandName, string args ) : ShellExecuteResult
commandName string
args string
return ShellExecuteResult

ExecuteShellCommand() public static method

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
return int

ResolveFullExecutablePath() public static method

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