nushell/src/tests
Antoine Stevan bf86cd50a5
REFACTOR: remove the shell commands (#8415)
Related to #8368.

# Description
as planned in #8311, the `enter`, `shells`, `g`, `n` and `p` commands
have been re-implemented in pure-`nushell` in the standard library.
this PR removes the `rust` implementations of these commands.

- all the "shells" tests have been removed from
`crates/nu-commnand/tests/commands/` in
2cc6a82da6, except for the `exit` command
- `cd` does not use the `shells` feature in its source code anymore =>
that does not change its single-shell behaviour
- all the command implementations have been removed from
`crates/nu-command/src/shells/`, except for `exit.rs` => `mod.rs` has
been modified accordingly
- the `exit` command now does not compute any "shell" related things
- the `--now` option has been removed from `exit`, as it does not serve
any purpose without sub-shells

# User-Facing Changes
users may now not use `enter`, `shells`, `g`, `n` and `p`
now they would have to use the standard library to have access to
equivalent features, thanks to the `dirs.nu` module introduced by @bobhy
in #8368

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
-  `toolkit test`
-  `toolkit test stdlib`

# After Submitting
the website will have to be regenerated to reflect the removed commands
👍
2023-05-13 12:40:11 -05:00
..
test_bits.rs Re-enable test_bits (#7585) 2022-12-23 11:19:10 -08:00
test_cell_path.rs Cell paths: make optional path members short-circuit (#8554) 2023-03-23 09:54:19 +13:00
test_commandline.rs fix: fix cursor position when cursor is at the end of the commandline (#9030) 2023-04-28 07:02:45 -05:00
test_conditionals.rs Add OneOf shape to fix else (#7385) 2022-12-08 08:58:54 +13:00
test_config_path.rs Use pretty_assertions in the root crate (#8818) 2023-04-08 11:52:37 -07:00
test_config.rs Add config mutation tests (#7437) 2022-12-12 12:46:25 -06:00
test_converters.rs Fix to json escape logic (#4478) 2022-02-15 06:55:57 -05:00
test_custom_commands.rs Use pretty_assertions in the root crate (#8818) 2023-04-08 11:52:37 -07:00
test_engine.rs Parameter defaults to $nu.scope.commands (#9152) 2023-05-11 13:59:56 -05:00
test_env.rs Remove the 'env' command, as we have the variable (#8185) 2023-03-01 21:20:00 +13:00
test_help.rs Parameter defaults to $nu.scope.commands (#9152) 2023-05-11 13:59:56 -05:00
test_hiding.rs Don't use 'spam' as module name as it isn't unique (#8409) 2023-03-12 07:01:24 +13:00
test_ide.rs limit the ide-check error amount (#8875) 2023-04-13 12:53:18 -05:00
test_iteration.rs Remove deprecated --numbered flag from four commands (#7777) 2023-02-02 16:59:58 -06:00
test_known_external.rs Allow arguments for the last flag in short flag batch (#8808) 2023-04-15 10:24:51 +02:00
test_math.rs Change comparison operators to allow nulls (#8617) 2023-03-26 12:10:09 +13:00
test_modules.rs Switch let/let-env family to init with math expressions (#8545) 2023-03-23 09:14:10 +13:00
test_parser.rs REFACTOR: remove the shell commands (#8415) 2023-05-13 12:40:11 -05:00
test_ranges.rs improve operation mismatch errors (#8800) 2023-04-08 09:32:44 +12:00
test_regex.rs improve operation mismatch errors (#8800) 2023-04-08 09:32:44 +12:00
test_signatures.rs allow records to have type annotations (#8914) 2023-04-26 08:16:55 -05:00
test_stdlib.rs Allocate less when doing a capture discovery (#8903) 2023-04-17 10:24:56 +12:00
test_strings.rs improve operation mismatch errors (#8800) 2023-04-08 09:32:44 +12:00
test_table_operations.rs Optional members in cell paths: Attempt 2 (#8379) 2023-03-15 20:50:58 -07:00
test_type_check.rs improve operation mismatch errors (#8800) 2023-04-08 09:32:44 +12:00