Process Run Shell

Use when running external commands or multi-line scripts from Dart with package:process_run (Shell, run, runSync, runExecutableArguments, runExecutableArgumentsSync, ShellOptions, ShellException, ShellCommand, runCommand, runScript, outText/outLines/errText/errLines, verbose, commandVerbose, throwOnError, workingDirectory, cd/pushd/popd, shellArgument/shellArguments quoting, stdout/stderr sinks, ShellLinesController, stdin, sharedStdIn, prompt, kill, onProcess, noStdoutResult), and instead of dart:io Process.start / Process.run, tests included: driving a program (feed its stdin, wait for an output line, answer, end of input, timeout and kill). Covers script syntax, executable resolution, result capture and error handling on Linux, macOS and Windows.

tekartik Updated

File contents

tekartik/process_run.dart commit ad7762e35f

Frequently asked questions

npx get-skill add tekartik/process-run-shell