cli_repl 0.2.3 cli_repl: ^0.2.3 copied to clipboard
A simple library for creating CLI REPLs
- Code cleanup to change how some parameters are initialized.
- Avoid triggering https://github.com/dart-lang/sdk/issue/34775.
- Explicitly declare
Repl.exit()'s type as
- Migrate to null-safety
- Require >=Dart 2.12
- Removed a
dart:asyncimport that isn't required for >=Dart 2.1.
- Require >=Dart 2.1.
- Support Dart 2 stable.
- Removes option to use sharedStdIn, as well as the
Line editing should now work in environments like the Emacs terminal where
EscOis used for ANSI-escaped input instead of the more typical
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.
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
Repl.run()does, both on the Dart VM and on Node.
- Fix issues on Windows
Repl.run()synchronous, since that use case is probably more common. The asynchronous version can now be run with
When running with
Repl.run()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.
- Initial release