ScriptRunnerConfig constructor
ScriptRunnerConfig({
- required List<
RunnableScript> scripts, - ScriptRunnerShellConfig shell = const ScriptRunnerShellConfig(),
- String? workingDir,
- Map<
String, String> ? env, - FileSystem? fileSystem,
- int lineLength = 80,
- 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();