nushell/src
Devyn Cairns d735607ac8
Isolate tests from user config (#12437)
# Description
This is an attempt to isolate the unit tests from whatever might be in
the user's config. If the
user's config is broken in some way or incompatible with this version
(for example, especially if
there are plugins that aren't built for this version), tests can
spuriously fail.

This makes tests more reliably pass the same way they would on CI even
if the user has config, and
should also make them run faster.

I think this is _good enough_, but I still think we should have a
specific config dir env variable for nushell specifically (rather than
having to use `XDG_CONFIG_HOME`, which would mess with other things) and
then we can just have `nu-test-support` set that to a temporary dir
containing the shipped default config files.

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`
2024-04-10 06:27:46 +08:00
..
tests Don't check if stderr empty in test_xdg_config_symlink (#12435) 2024-04-06 18:01:16 -04:00
command.rs Add --no-newline option to nu (#12410) 2024-04-09 10:04:00 -04:00
config_files.rs add a few more logging statements for debugging startup (#12316) 2024-03-28 11:27:12 -05:00
ide.rs 🐛 remove 3 backticks messing the hover (#12273) 2024-03-24 14:15:01 -05:00
logger.rs Use variable names directly in the format strings (#7906) 2023-01-29 19:37:54 -06:00
main.rs Fix #12416 by canonicalizing XDG_CONFIG_HOME before comparing to config_dir() (#12420) 2024-04-06 09:09:03 -05:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
run.rs Isolate tests from user config (#12437) 2024-04-10 06:27:46 +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 Fix merging child stack into parent (#12426) 2024-04-06 15:03:22 +00:00
tests.rs Remove feat extra and include in default (#12140) 2024-03-10 17:29:02 +01: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.