core/shell library

Functions

shellCommand(String command, {bool? windows}) → ({List<String> arguments, String executable})
The shell that runs script commands: /bin/sh on macOS and Linux, and cmd.exe on Windows. Scripts run in the same shell for every teammate, whatever their login shell is.
shellQuote(String value) → String
Quotes value for a POSIX shell, leaving plain words unquoted.
withArguments(String command, List<String> arguments, {bool? windows}) → String
command followed by arguments, each quoted for the shell so it reaches the script as one argument.