pubdiagnose 2.0.0-rc.2 copy "pubdiagnose: ^2.0.0-rc.2" to clipboard
pubdiagnose: ^2.0.0-rc.2 copied to clipboard

Diagnose Dart dependencies: why packages are installed, what blocks upgrades, and which constraints conflict. CLI: pubdoctor.

example/pubdiagnose_example.dart

// ignore_for_file: avoid_print

import 'package:pubdiagnose/pubdiagnose.dart';

/// Minimal library example: open a project and run a health check.
Future<void> main() async {
  final kernel = await PubDoctor.open('.');
  try {
    final result = await kernel.check();
    result.when(
      ok: (report) {
        print('Status: ${report.status}');
        print('Diagnostics: ${report.diagnostics.length}');
      },
      fail: (failure) => print('Check failed: ${failure.message}'),
    );
  } finally {
    await kernel.close();
  }
}
1
likes
160
points
113
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Diagnose Dart dependencies: why packages are installed, what blocks upgrades, and which constraints conflict. CLI: pubdoctor.

Repository (GitHub)
View/report issues

Topics

#dependencies #tooling #cli #diagnostics #pub

License

BSD-3-Clause (license)

Dependencies

args, collection, http, path, pub_semver, yaml

More

Packages that depend on pubdiagnose