createJshellTask function

Task createJshellTask(
  1. JbDartle jbDartle,
  2. JbFiles jbFiles,
  3. JbConfigContainer config,
  4. JbActors actors,
  5. Options options,
  6. DartleCache cache,
)

Create the jshell task.

Implementation

Task createJshellTask(
  JbDartle jbDartle,
  JbFiles jbFiles,
  JbConfigContainer config,
  JbActors actors,
  Options options,
  DartleCache cache,
) {
  return Task(
    (List<String> args) => jshell(jbDartle, options, config, args, cache),
    dependsOn: const {compileTaskName, installRuntimeDepsTaskName},
    name: jshellTaskName,
    description: jshellHelp,
    phase: evaluatePhase,
  );
}