mirror of
https://github.com/nushell/nushell.git
synced 2025-07-08 18:37:07 +02:00
Refs #15992 Refs #14457 # Description This PR introduces a new switch for `query xml`, `--namespaces`, and thus allows people to use namespace prefixes in the XPath query to query namespaced XML. Example: ```nushell r#' <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/" <dc:title>Black-breasted buzzard_AEB_IMG_7158</dc:title> </rdf:Description> </rdf:RDF> '# | query xml --namespaces {dublincore: "http://purl.org/dc/elements/1.1/"} "//dublincore:title/text()" ``` # User-Facing Changes New switch added to `query xml`: `query xml --namespaces {....}` # Tests + Formatting Pass. # After Submitting IIRC the commands docs on the website are automatically generated, so nothing to do here.
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.