nushell/crates
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
..
nu_plugin_custom_values Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu_plugin_example Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu_plugin_formats Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu_plugin_gstat Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu_plugin_inc Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu_plugin_nu_example Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu_plugin_polars run ensure_flag_arg_type for short flag values (#14074) 2024-10-16 21:25:17 -05:00
nu_plugin_python Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu_plugin_query Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu_plugin_stress_internals Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-cli Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-cmd-base Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-cmd-extra Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-cmd-lang Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-cmd-plugin Make plugin list read state from plugin registry file as well (#14085) 2024-10-16 21:24:45 -05:00
nu-color-config Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-command run ensure_flag_arg_type for short flag values (#14074) 2024-10-16 21:25:17 -05:00
nu-derive-value Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-engine Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-explore Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-glob Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-json Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-lsp Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-parser run ensure_flag_arg_type for short flag values (#14074) 2024-10-16 21:25:17 -05:00
nu-path Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-plugin Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-plugin-core Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-plugin-engine Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-plugin-protocol Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-plugin-test-support Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-pretty-hex Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-protocol use command: Don't create a variable with empty record if it doesn't define any constants (#14051) 2024-10-16 21:25:45 -05:00
nu-std Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-system Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-table Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-term-grid Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-test-support Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nu-utils Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -05:00
nuon Bump to version 0.99.1 (#14100) 2024-10-16 21:23:37 -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.