cacheTaskInvocation method

Future<void> cacheTaskInvocation(
  1. String taskName, [
  2. List<String> args = const []
])

Cache the given task invocation.

Implementation

Future<void> cacheTaskInvocation(String taskName,
    [List<String> args = const []]) async {
  final file = _taskFile(taskName);
  logger.fine(() => 'Caching invocation of task "$taskName" at ${file.path}');
  await file.writeAsString(args.toString());
}