nushell/crates
Antoine Stevan 3005fe10e5
REFACTOR: move run-tests and fix the std assert namespace (#9303)
related to the namespace bullet point in
- https://github.com/nushell/nushell/issues/8450

# Description
this was the last module of the standard library with a broken
namespace, this PR takes care of this.

- `run-tests` has been moved to `std/mod.nu`
- `std/testing.nu` has been moved to `std/assert.nu`
- the namespace has been fixed
- `assert` is now called `main` and used in all the other `std assert`
commands
- for `std assert length` and `std assert str contains`, in order not to
shadow the built-in `length` and `str contains` commands, i've used
`alias "core ..." = ...` to (1) define `foo` in `assert.nu` and (2)
still use the builtin `foo` with `core foo` (replace `foo` by `length`
or `str contains`)
  - tests have been fixed accordingly

# User-Facing Changes
one can not use
```
use std "assert equal"
```
anymore because `assert ...` is not exported from `std`.
`std assert` is now a *real* module.

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

# After Submitting
```
$nothing
```

# Notes for reviewers
to test this, i think the easiest is to
- run `toolkit test stdlib` and see all the tests pass
- run `cargo run -- -n` and try `use std assert` => are all the commands
available in scope?
2023-05-27 07:45:04 -05:00
..
nu_plugin_custom_values update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu_plugin_example bump nushell from release version to development version (#9215) 2023-05-17 07:59:01 -05:00
nu_plugin_formats update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu_plugin_gstat update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu_plugin_inc update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu_plugin_python update nu_plugin_python due to signature changes (#8107) 2023-02-18 13:27:24 +00:00
nu_plugin_query update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-cli update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-cmd-dataframe Adding JSON lines file support to dataframes (#9291) 2023-05-26 16:32:37 -05:00
nu-cmd-lang update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-color-config update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-command update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-engine remove unused dependencies (#9230) 2023-05-18 11:37:20 -05:00
nu-explore [nu-explore] fix Cargo description (#9297) 2023-05-27 10:18:39 +02:00
nu-glob Cut down on unnecessary parsing for SyntaxShape::Any (#9280) 2023-05-25 07:53:57 +12:00
nu-json update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-parser update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-path update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-plugin update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-pretty-hex update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-protocol update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-std REFACTOR: move run-tests and fix the std assert namespace (#9303) 2023-05-27 07:45:04 -05:00
nu-system update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-table update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-term-grid update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-test-support update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-utils update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00

Nushell core libraries and plugins

These sub-crates form both the foundation for Nu and a set of plugins which extend Nu with additional functionality.

Foundational libraries are split into two kinds of crates:

  • Core crates - those crates that work together to build the Nushell language engine
  • Support crates - a set of crates that support the engine with additional features like JSON support, ANSI support, and more.

Plugins are likewise also split into two types:

  • Core plugins - plugins that provide part of the default experience of Nu, including access to the system properties, processes, and web-connectivity features.
  • Extra plugins - these plugins run a wide range of different capabilities like working with different file types, charting, viewing binary data, and more.