RunnableScript constructor

RunnableScript(
  1. String name, {
  2. required String cmd,
  3. required List<String> args,
  4. String? description,
  5. String? workingDir,
  6. Map<String, String> env = const {},
  7. FileSystem? fileSystem,
  8. bool displayCmd = false,
  9. bool appendNewline = false,
})

A runnable script with pre-defined name, cmd and args. May be run using the run command and optionally supplying extra arguments to pass.

Implementation

RunnableScript(
  this.name, {
  required this.cmd,
  required this.args,
  this.description,
  this.workingDir,
  this.env = const {},
  FileSystem? fileSystem,
  this.displayCmd = false,
  this.appendNewline = false,
}) : _fileSystem = fileSystem ?? LocalFileSystem();