process_run library Null safety

Helper to run a process and connect the input/output for verbosity

Functions

argumentsToString(List<String> arguments) String
Convert multiple arguments to string than can be used in a terminal
argumentToString(String argument) String
Helper to run a process and connect the input/output for verbosity [...]
devRun(String executable, List<String> arguments, {String? workingDirectory, Map<String, String>? environment, bool includeParentEnvironment = true, bool runInShell = false, Encoding stdoutEncoding = SYSTEM_ENCODING, Encoding stderrEncoding = SYSTEM_ENCODING, Stream<List<int>>? stdin, StreamSink<List<int>>? stdout, StreamSink<List<int>>? stderr, bool connectStdout = false, bool connectStderr = false, bool connectStdin = false}) Future<ProcessResult>
executableArgumentsToString(String? executable, List<String>? arguments) String
Convenient way to display a command
run(String executable, List<String> arguments, {String? workingDirectory, Map<String, String>? environment, bool includeParentEnvironment = true, bool? runInShell, Encoding? stdoutEncoding = systemEncoding, Encoding? stderrEncoding = systemEncoding, Stream<List<int>>? stdin, StreamSink<List<int>>? stdout, StreamSink<List<int>>? stderr, bool? verbose, bool? commandVerbose}) Future<ProcessResult>
Use runExecutableArguments instead [...]
runExecutableArguments(String executable, List<String> arguments, {String? workingDirectory, Map<String, String>? environment, bool includeParentEnvironment = true, bool? runInShell, Encoding? stdoutEncoding = systemEncoding, Encoding? stderrEncoding = systemEncoding, Stream<List<int>>? stdin, StreamSink<List<int>>? stdout, StreamSink<List<int>>? stderr, bool? verbose, bool? commandVerbose, void onProcess(Process process)?}) Future<ProcessResult>
if commmandVerbose or verbose is true, display the command. if verbose is true, stream stdout & stdin [...]