cli_repl 0.2.3 icon indicating copy to clipboard operation
cli_repl: ^0.2.3 copied to clipboard

A simple library for creating CLI REPLs

Changelog #

0.2.3 #

  • Code cleanup to change how some parameters are initialized.

0.2.2 #

  • Explicitly declare Repl.exit()'s type as FutureOr<void>.

0.2.1 #

  • Migrate to null-safety
  • Require >=Dart 2.12

0.2.0+2 #

  • Removed a dart:async import that isn't required for >=Dart 2.1.
  • Require >=Dart 2.1.

0.2.0+1 #

  • Support Dart 2 stable.

0.2.0 #

  • Removes option to use sharedStdIn, as well as the io package dependency.

0.1.3 #

  • Line editing should now work in environments like the Emacs terminal where EscO is used for ANSI-escaped input instead of the more typical Esc[.

  • Fixed issue with the prompt changing to the Node default when running on it.

  • Broadened dependency on the async package to support 2.x.x versions.

0.1.2 #

  • If compiled to JS and run with Node, Repl.runAsync() should now work. It uses the Node readline library for line editing.

  • Repl.runAsync() now supports running with no terminal, and should operate similarly to how does, both on the Dart VM and on Node.

0.1.1 #

  • Fix issues on Windows

0.1.0 #

  • Makes synchronous, since that use case is probably more common. The asynchronous version can now be run with Repl.runAsync().

  • When running with and no terminal, this will no longer crash, and instead print both prompts and the input, allowing you to test a REPL by piping input to it.

  • Adds support for limited cutting and pasting with Ctrl-U, Ctrl-K, and Ctrl-Y.

0.0.1 #

  • Initial release
pub points


unverified uploader

A simple library for creating CLI REPLs

Repository (GitHub)
View/report issues


API reference


Icon for licenses.BSD-3-Clause (LICENSE)


async, js


Packages that depend on cli_repl