ScriptRunnerConfig constructor

ScriptRunnerConfig({
  1. required List<RunnableScript> scripts,
  2. ScriptRunnerShellConfig shell = const ScriptRunnerShellConfig(),
  3. String? workingDir,
  4. Map<String, String>? env,
  5. FileSystem? fileSystem,
  6. int lineLength = 80,
  7. String? configSource,
})

Create a new script runner config from given arguments. Usually you would not want to call this, and instead load the config from a file using ScriptRunnerConfig.get().

See each argument for more details.

Implementation

ScriptRunnerConfig({
  required this.scripts,
  this.shell = const ScriptRunnerShellConfig(),
  this.workingDir,
  this.env,
  FileSystem? fileSystem,
  this.lineLength = 80,
  this.configSource,
}) : _fileSystem = fileSystem ?? LocalFileSystem();