landscape_analysis 2.0.1 landscape_analysis: ^2.0.1 copied to clipboard
A cli for analyzing pubspec files and generating visual dependency graphs using Graphviz.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate landscape_analysis
Use it
The package has the following executables:
$ landscape_analysis
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add landscape_analysis
With Flutter:
$ flutter pub add landscape_analysis
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
landscape_analysis: ^2.0.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:landscape_analysis/cli/cli_runner.dart';
import 'package:landscape_analysis/cli/commands/analyze_command.dart';
import 'package:landscape_analysis/cli/commands/fetch-command/base_fetch_command.dart';
import 'package:landscape_analysis/cli/commands/fetch-command/fetch_command.dart';
import 'package:landscape_analysis/cli/commands/fetch-command/gitlab_command.dart';
import 'package:landscape_analysis/cli/commands/fetch-command/local_command.dart';
import 'package:landscape_analysis/core/input/gitlab_source.dart';
import 'package:landscape_analysis/core/input/http/api_client.dart';
import 'package:landscape_analysis/core/input/local_source.dart';
import 'package:landscape_analysis/core/input/pubspec_source.dart';
import 'package:landscape_analysis/core/output/dot_generator.dart';
import 'package:landscape_analysis/core/output/gexf_generator.dart';
import 'package:landscape_analysis/core/output/graph_ml_generator.dart';
import 'package:landscape_analysis/core/output/json_generator.dart';
import 'package:landscape_analysis/core/output/output_generator.dart';
import 'package:landscape_analysis/core/processing/dependency_edge.dart';
import 'package:landscape_analysis/core/processing/dependency_graph_parser.dart';
import 'package:landscape_analysis/core/processing/dependency_node.dart';
import 'package:landscape_analysis/core/processing/graph/edge.dart';
import 'package:landscape_analysis/core/processing/graph/graph.dart';
import 'package:landscape_analysis/core/processing/graph/node.dart';
import 'package:landscape_analysis/core/processing/pubspec_loader.dart';