Skip to content

A tool to find the shortest import path from one dart file to another.

License

Notifications You must be signed in to change notification settings

jakemac53/import_path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A tool to find the shortest import path from one dart file to another.

Usage

First, globally activate the package:

dart pub global activate import_path

Then run it, the first argument is the library or application that you want to start searching from, and the second argument is the import you want to search for.

import_path <entrypoint> <import>

Files should be specified as dart import uris, so relative or absolute file paths, as well as package: and dart: uris are supported.

Example

From the root of this package, you can do:

pub global activate import_path
import_path bin/import_path.dart package:analyzer/dart/ast/ast.dart

About

A tool to find the shortest import path from one dart file to another.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages