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:
Borimino
2020-01-25 17:16:40 +01:00
committed by Jonathan Turner
parent 83db5c34c3
commit 583f27dc41
2 changed files with 126 additions and 10 deletions

View File

@ -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!(