Methods
-
checkExistsSync()
→ void
-
Check if executable exists, as per existsSync.
-
consumeProcess(List<String> args, {String? workingDirectory, CliStreamConsumer consumer = const CliStreamConsumer(), Map<String, String>? environment, bool includeParentEnvironment = true, })
→ Future<int>
-
Start a new process and consume it using
consumer
.
-
evaluateProcess(List<String> args, {String? workingDirectory, CliStreamConsumer consumer = const CliStreamConsumer(), Map<String, String>? environment, bool includeParentEnvironment = true, int expectedCode = 0})
→ Future<bool>
-
Start a process in
workingDirectory
.
-
existsSync()
→ bool
-
Synchronously check if executable can be found and executed without any
errors.
-
getVersionSync()
→ Version
-
Returns the version of executable.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
runAsync(List<String> args, {String? workingDirectory, Encoding encoding = defaultCliEncoding, Map<String, String>? environment, bool includeParentEnvironment = true, })
→ Future<ProcessResult>
-
-
runSync(List<String> args, {String? workingDirectory, Encoding encoding = defaultCliEncoding, Map<String, String>? environment, bool includeParentEnvironment = true, })
→ ProcessResult
-
-
startProcess(List<String> args, {String? workingDirectory, ProcessStartMode mode = io.ProcessStartMode.normal, Map<String, String>? environment, bool includeParentEnvironment = true, })
→ Future<Process>
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
writeWindowsBatchScript({required File file, required String contents, bool changeCodePage = true})
→ Future<void>
-
-
writeWindowsBatchScriptSync({required File file, required String contents, bool changeCodePage = true})
→ void
-