mono_core 0.0.8 copy "mono_core: ^0.0.8" to clipboard
mono_core: ^0.0.8 copied to clipboard

Core library for managing the mono CLI and its tasks, plugins, and configuration.

example/main.dart

import 'package:mono_core/mono_core.dart';

void main() {
  final graph = DependencyGraph(
    nodes: {'a', 'b', 'c'},
    edges: {
      'b': {'a'},
      'c': {'b'},
    },
  );

  final order = graph.topologicalOrder();
  print('Build order: $order');

  try {
    final bad = DependencyGraph(
      nodes: {'x', 'y'},
      edges: {
        'x': {'y'},
        'y': {'x'},
      },
    );
    bad.topologicalOrder();
  } on GraphCycleError catch (e) {
    print('Cycle detected: ${e.cycle}');
  }
}
0
likes
150
points
0
downloads

Publisher

verified publisherjozz.biz

Weekly Downloads

Core library for managing the mono CLI and its tasks, plugins, and configuration.

Homepage
Repository (GitHub)
View/report issues

Topics

#mono #monorepo #cli #tool

Documentation

API reference

License

MIT (license)

Dependencies

collection, meta

More

Packages that depend on mono_core