cacheTaskInvocation method
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());
}