nushell/crates/nu-std/lib
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
..
dirs.nu REFACTOR: remove the shell commands (#8415) 2023-05-13 12:40:11 -05:00
dt.nu REFACTOR: move the banner from the rust source to the standard library (#8406) 2023-05-10 07:05:01 -05:00
help.nu fix the span of the global std help item (#9184) 2023-05-12 20:30:38 +02:00
iter.nu add more commands to std iter (#9129) 2023-05-10 19:18:42 +02:00
log.nu swap the date and the log level in the std log format (#9138) 2023-05-08 12:29:18 -05:00
mod.nu REFACTOR: move the banner from the rust source to the standard library (#8406) 2023-05-10 07:05:01 -05:00
testing.nu std run-tests: Rename --command switch to --test; and likewise in --list output (#8895) 2023-04-20 19:41:33 -05:00
xml.nu stdlib: refactor into a multi-module library (#8815) 2023-04-09 20:00:20 +03:00