You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: improve REPL interface with banner, dot-commands, and --quiet flag (#4888)
## Summary
Improves the REPL experience by adding a welcome banner, dot-commands,
and a `--quiet` flag.
Solves #4883
## Changes
- Welcome banner with version info on startup
- `.help`, `.clear`, `.load <file>` dot-commands
- `--quiet` / `-q` flag to suppress the banner
- Ctrl+C now shows exit hint instead of quitting
- Improved error formatting (bold + red labels)
- Added help descriptions for `-O` and `--optimizer-statistics`
- Updated
[README.md](cci:7://file:///c:/Users/Sahana/boa/cli/README.md:0:0-0:0)
with new REPL Commands section
## Files Changed
Modified `cli/src/main.rs`
> REPL loop, banner, dot-commands, CLI flags, error formatting
Modified `cli/README.md`
> Updated CLI options and added REPL Commands section
---------
Co-authored-by: Hans Larsen <681969+hansl@users.noreply.github.com>
--flowgraph-direction <FORMAT> Specifies the direction of the flowgraph. Default is top-top-bottom [possible values: top-to-bottom, bottom-to-top, left-to-right, right-to-left]
60
60
--debug-object Inject debugging object `$boa`
61
61
-m, --module Treats the input files as modules
62
62
-r, --root <ROOT> Root path from where the module resolver will try to load the modules [default: .]
63
+
-e, --expression <EXPR> Execute a JavaScript expression then exit
64
+
-q, --quiet Suppress the welcome banner when starting the REPL
63
65
-h, --help Print help (see more with '--help')
64
66
-V, --version Print version
65
67
```
66
68
69
+
## REPL Commands
70
+
71
+
When running the interactive REPL (`boa` with no file arguments), the following
0 commit comments