mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 00:29:20 +02:00
Added attributes to from-xml command (#1272)
* Added attributes to from-xml command * Added attributes as their own rows * Removed unneccesary lifetime declarations * from-xml now has children and attributes side by side * Fixed tests and linting * Fixed lint-problem
This commit is contained in:
committed by
Jonathan Turner
parent
83db5c34c3
commit
583f27dc41
@ -189,7 +189,7 @@ fn parses_json() {
|
||||
fn parses_xml() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats",
|
||||
"open jonathan.xml | get rss.channel | get item | get link | echo $it"
|
||||
"open jonathan.xml | get rss.children.channel.children | get item.children | get link.children | echo $it"
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
|
Reference in New Issue
Block a user