root property
Directory
get
root
Implementation
Directory get root {
final rootPath = argResults?['root'] as String?;
final rootDir = rootPath != null ? Directory(rootPath) : Directory.current;
if (!rootDir.existsSync()) {
throw Exception('Root directory does not exist: $rootPath');
}
return rootDir;
}