run method
Run the command with the given arguments
Implementation
@override
Future<int> run(List<String> arguments) async {
parseArgs(arguments);
printInfo('Claude Dart/Flutter Toolkit Doctor');
print('');
var issuesFound = 0;
// Check toolkit installation
issuesFound += await _checkToolkitInstallation();
// Check project setup (if in a project)
if (isInProject()) {
issuesFound += await _checkProjectSetup();
} else {
printInfo('📂 Not in a Dart/Flutter project (this is okay)');
}
// Check development environment
issuesFound += await _checkDevelopmentEnvironment();
// Summary
print('');
if (issuesFound == 0) {
printSuccess('🎉 No issues found! Everything looks good.');
} else {
printWarning('⚠️ Found $issuesFound issue(s). See above for details.');
}
return issuesFound == 0 ? 0 : 1;
}