mirror of
https://github.com/nushell/nushell.git
synced 2025-08-02 04:53:41 +02:00
- fixes #16129 # Description ## Problem Parsing a multi span value as RowCondition always produces a RowCondition expression that covers all the spans. Which is problematic inside OneOf and can produce multiple expressions with overlapping spans. Which results in funky highlighting that duplicates text. ## Solution Only reason for including `SyntaxShape::Closure` in the signature (#15697) was for documentation purposes, making it clear in `help` texts that a closure can be used as the argument. As our current parser is shape directed, simplifying the command signature means simplifies the parsing, so using a RowCondition on its own, and instead making it always look like a union with `closure(any)` solves the issue without any changes in the parser. Also, RowCondition always accepts closure values anyway, so its textual representation should indicate that without the need to wrap it in OneOf. Co-authored-by: Bahex <17417311+Bahex@users.noreply.github.com>
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.