process_run library

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
Use to safely enclose an argument if needed [...]
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>
if commmandVerbose or verbose is true, display the command. if verbose is true, stream stdout & stdin