nushell/src
Ian Manske 72d3860d05
Refactor the CLI code a bit (#12782)
# Description
Refactors the code in `nu-cli`, `main.rs`, `run.rs`, and few others.
Namely, I added `EngineState::generate_nu_constant` function to
eliminate some duplicate code. Otherwise, I changed a bunch of areas to
return errors instead of calling `std::process::exit`.

# User-Facing Changes
Should be none.
2024-05-10 07:29:27 +08:00
..
tests allow raw string to be used inside subexpression, list, and closure (#12776) 2024-05-06 15:53:58 -05:00
command.rs Refactor the CLI code a bit (#12782) 2024-05-10 07:29:27 +08:00
config_files.rs Refactor the CLI code a bit (#12782) 2024-05-10 07:29:27 +08:00
ide.rs Refactor the CLI code a bit (#12782) 2024-05-10 07:29:27 +08:00
logger.rs Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
main.rs Refactor the CLI code a bit (#12782) 2024-05-10 07:29:27 +08:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
run.rs Refactor the CLI code a bit (#12782) 2024-05-10 07:29:27 +08:00
signals.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
terminal.rs Deduplicate nix dependency versions (#12307) 2024-03-27 16:43:37 +01:00
test_bins.rs Migrate to a new PWD API (part 2) (#12749) 2024-05-07 18:17:49 +03:00
tests.rs Deprecate register and add plugin use (#12607) 2024-04-23 06:37:50 -05:00

Nushell REPL

This directory contains the main Nushell REPL (read eval print loop) as part of the CLI portion of Nushell, which creates the nu binary itself.

Current versions of the nu binary will use the Nu argument parsing logic to parse the commandline arguments passed to nu, leaving the logic here to be a thin layer around what the core libraries.