cura 0.6.1
cura: ^0.6.1 copied to clipboard
CLI tool to audit Flutter/Dart package health, dependency scores, and maintenance status.
/// Example: Simple check of a Dart/Flutter project
///
/// This demonstrates the most basic usage of Cura:
/// checking all dependencies in a pubspec.yaml file.
import 'dart:io';
void main() async {
print('š Cura - Simple Check Example\n');
// Ensure we're in a Dart/Flutter project
if (!await File('pubspec.yaml').exists()) {
print('ā Error: pubspec.yaml not found');
print('Run this example from a Dart/Flutter project directory.');
exit(1);
}
print('Running: cura check\n');
print('ā' * 50);
// Execute cura scan
final result = await Process.run(
'cura',
['check'],
runInShell: true,
);
print(result.stdout);
if (result.exitCode != 0) {
print(result.stderr);
exit(result.exitCode);
}
print('ā' * 50);
print('\nā
Check completed!\n');
print('š” Tips:');
print(' ⢠Use --verbose for detailed output');
print(' ⢠Use --json for machine-readable output');
print(' ⢠Use cura view <package> for detailed info');
}