getShellCommandArgs function

List<String> getShellCommandArgs(
  1. String command
)

Implementation

List<String> getShellCommandArgs(String command) {
  if (Platform.isWindows) {
    return ['/C', command];
  }

  return ['-c', command];
}