isVadenProject method
Check if the current directory is a valid Vaden project
Implementation
Future<bool> isVadenProject() async {
final pubspecPath = p.join(projectRoot, 'pubspec.yaml');
if (!await FileUtils.fileExists(pubspecPath)) {
return false;
}
try {
final content = await FileUtils.readFile(pubspecPath);
final pubspec = loadYaml(content);
final dependencies = pubspec['dependencies'] as YamlMap?;
return dependencies != null && dependencies.containsKey('vaden');
} catch (e) {
return false;
}
}