Wind 71b49c3374
use command: Don't create a variable with empty record if it doesn't define any constants (#14051)
# Description
Fixes: #13967

The key changes lays in `nu-protocol/src/module.rs`, when resolving
import pattern, nushell only needs to bring `$module` with a record
value if it defines any constants.

# User-Facing Changes
```nushell
module spam {}
use spam
```
Will no longer create a `$spam` variable with an empty record.

# Tests + Formatting
Adjusted some tests and added some tests.
2024-10-16 21:25:45 -05:00
..
2024-10-16 21:23:37 -05:00
2024-10-16 21:23:37 -05:00
2024-10-16 21:23:37 -05:00
2024-10-16 21:23:37 -05:00
2024-10-16 21:23:37 -05:00
2024-10-16 21:23:37 -05:00
2024-10-16 21:23:37 -05:00
2024-10-16 21:23:37 -05:00
2024-10-16 21:23:37 -05:00
2024-10-16 21:23:37 -05:00
2024-10-16 21:23:37 -05:00
2024-10-16 21:23:37 -05:00
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.