drtimport

A command line application that allow helps refactor dart libraries.

You can use it to move a library (or directory of libraries) and drtimport will update import statements across your whole package to reflect the new location of files.

Dart import management, version: 1.0.2

Usage: drtimport <command> [arguments]

Global options:
-h, --help    Print this usage information.

Available commands:
  help     Display help information for drtimport.
  move     Moves a dart library and updates all import statements to reflect its new location.
  patch    Patches import statements by doing a string replace.
  relative Changes all local paths from package to relative.

Run "drtimport help <command>" for more information about a command.


move:

move <from path> <to path>
e.g. move apps/string.dart  util/string.dart
-h, --help           Print this usage information.
    --root=<path>    The path to the root of your project.
                     (defaults to ".")

    --debug          Turns on debug ouput
-v, --version        Outputs the version of drtimport and exits.


patch:

Patches import statements by doing a string replace within every import statement.
<from string> <to string>
e.g. AppClass app_class
-h, --help    Print this usage information.

Libraries

dart_import_app
enum_helper
fred2
fred3
library
line
log
make_relative_command
move_command
move_result
patch_command
pubspec
stack_list
stack_list
stack_trace_impl
watch_command
yaml