args function

String args(
  1. Iterable<Object> arguments
)

Converts all elements of arguments to strings and escapes them so they're parsed as separate arguments with no glob expansion by new Script and related functions.

For example, run("cp -r ${args(directories)} build/").

Implementation

String args(Iterable<Object> arguments) => arguments.map(arg).join(" ");