mirror of
https://github.com/nushell/nushell.git
synced 2024-12-03 13:53:59 +01:00
8ab2b92405
This adds a top-level document for the new `from` command, with a list of links of all the subcommands. All the from-* subcommands keep their filename, but the content is updated to use the new subcommand syntax. Needs matching update for to* Ref #1709
874 B
874 B
from xml
Parse text as .xml
and create table. Use this when nushell cannot dertermine the input file extension.
Syntax: from xml
Examples
Let's say we've got a file in xml
format but the file extension is different so Nu can't auto-format it:
> open world.txt
<?xml version="1.0" encoding="utf-8"?>
<world>
<continent>Africa</continent>
<continent>Antarctica</continent>
<continent>Asia</continent>
<continent>Australia</continent>
<continent>Europe</continent>
<continent>North America</continent>
<continent>South America</continent>
</world>
We can use from xml
to read the input like a xml
file:
> open world.txt | from xml
━━━━━━━━━━━━━━━━
world
────────────────
[table 7 rows]
━━━━━━━━━━━━━━━━