nushell/crates/nu-cli/src
Devyn Cairns 12991cd36f
Change the error style during tests to plain (#13061)
# Description

This fixes issues with trying to run the tests with a terminal that is
small enough to cause errors to wrap around, or in cases where the test
environment might produce strings that are reasonably expected to wrap
around anyway. "Fancy" errors are too fancy for tests to work
predictably 😉

cc @abusch

# User-Facing Changes

- Added `--error-style` option for use with `--commands` (like
`--table-mode`)

# Tests + Formatting

Surprisingly, all of the tests pass, including in small windows! I only
had to make one change to a test for `error make` which was looking for
the box drawing characters miette uses to determine whether the span
label was showing up - but the plain error style output is even better
and easier to match on, so this test is actually more specific now.
2024-06-18 21:37:24 -07:00
..
commands Make get_full_help take &dyn Command (#12903) 2024-05-19 19:56:33 +02:00
completions Fix the colors when completing using a relative path (#12898) 2024-06-07 08:07:23 -05:00
menus Make get_full_help take &dyn Command (#12903) 2024-05-19 19:56:33 +02:00
config_files.rs Revert "Remove std::env::set_current_dir() call from EngineState::merge_env()" (#12954) 2024-05-24 11:09:59 -05:00
eval_cmds.rs Change the error style during tests to plain (#13061) 2024-06-18 21:37:24 -07:00
eval_file.rs Replace ExternalStream with new ByteStream type (#12774) 2024-05-16 07:11:18 -07:00
lib.rs Change the error style during tests to plain (#13061) 2024-06-18 21:37:24 -07:00
nu_highlight.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
print.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
prompt_update.rs Refactor the CLI code a bit (#12782) 2024-05-10 07:29:27 +08:00
prompt.rs cleanup osc calls for shell_integration (#12810) 2024-05-08 13:34:04 -05:00
reedline_config.rs Fix delta not being merged when evaluating menus (#13120) 2024-06-10 22:33:22 +03:00
repl.rs fixes a bug in OSC9;9 execution (#12994) 2024-05-29 18:06:47 -05:00
syntax_highlight.rs Avoid taking unnecessary ownership of intermediates (#12740) 2024-05-04 00:53:15 +00:00
util.rs Add string/binary type color to ByteStream (#12897) 2024-05-20 00:35:32 +00:00
validation.rs Remove old alias implementation (#8797) 2023-04-07 21:09:38 +03:00