cura 0.4.0 copy "cura: ^0.4.0" to clipboard
cura: ^0.4.0 copied to clipboard

CLI tool to audit Flutter/Dart package health, dependency scores, and maintenance status.

example/main.dart

/// 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');
}
2
likes
0
points
458
downloads

Publisher

verified publishermeragix.dev

Weekly Downloads

CLI tool to audit Flutter/Dart package health, dependency scores, and maintenance status.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

args, cli_table, dio, http, mason_logger, path, pool, retry, sqflite_common_ffi, yaml, yaml_writer

More

Packages that depend on cura