dart_repl 0.9.2 copy "dart_repl: ^0.9.2" to clipboard
dart_repl: ^0.9.2 copied to clipboard

outdatedDart 1 only

A Dart REPL proof of concept inspired by Python's interactive mode.

dart_repl #

A proof of concept REPL environment for Dart.

asciicast

See the Dart REPL Directions brain-dump for possible ideas and directions.

Usage #

From another package #

You can add a dev_dependency: to your pubspec.yaml:

dev_dependencies:
  dart_repl:
  [...]

You can then run the REPL with:

pub run dart_repl

It will automatically resolve all additional adhoc imports against the dependencies of your package:

pub run dart_repl --adhoc-import package:built_collection/built_collection.dart

From a checkout #

From the command-line

dart bin/dart_repl.dart

To import additional libraries:

dart bin/dart_repl.dart --package-dir ~/git/built_collection.dart/ --adhoc-import lib/built_collection.dart

pub global run is currently not supported #

pub global run only provides a packageRoot and packages are served via a web service. This special case is not handled at the moment, so it will fail to start. Contributions are welcome!

Features requests and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A Dart REPL proof of concept inspired by Python's interactive mode.

Homepage

License

unknown (LICENSE)

Dependencies

analyzer, args, package_resolver, vm_service_client

More

Packages that depend on dart_repl