Expand description
This crate implements the core functionality of the interactive Nushell REPL and interfaces with reedline.
Currently implements the syntax highlighting and completions logic.
Furthermore includes a few commands that are specific to reedline
§Internal Nushell crate
This crate implements components of Nushell and is not designed to support plugin authors or other users directly.
Structs§
- Completion
Engine - Evaluate
Commands Opts - File
Completion - NuCompleter
- NuHelp
Completer - NuHighlighter
- NuValidator
- Nushell
Prompt - The reedline-facing view over some
PromptContents. - Semantic
Suggestion - Startup
Load Context - Identifies a startup load (path and role).
Enums§
- Startup
File Kind - Which kind of startup file is being loaded.
- Suggestion
Kind
Functions§
- add_
cli_ context - eval_
config_ contents - eval_
config_ contents_ with_ kind - Evaluate a startup configuration file, using
kindonly for path-level I/O error framing (missing/unreadable file). Parse/compile/shell errors use the standard reporters viaeval_source. - eval_
source - evaluate_
commands - Run a command (or commands) given to us by the user
- evaluate_
file - Entry point for evaluating a file.
- evaluate_
repl - The main REPL loop, including spinning up the prompt itself.
- gather_
parent_ env_ vars - report_
startup_ file_ not_ found - Report a missing/unreadable startup path without blaming Host Environment Variables.
- update_
prompt - Re-evaluate
$env.PROMPT_COMMANDand friends and install the result as the prompt’s per-cycle baseline. This overwrites anything a background job pushed during the previous cycle, resetting the prompt for the next line.