mirror of
https://github.com/nushell/nushell.git
synced 2024-11-27 19:03:30 +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
738 B
738 B
from json
Parse text as .json
and create table. Use this when nushell cannot dertermine the input file extension.
Syntax: from json {flags}
Flags:
--objects
treat each line as a separate value
Examples
> open command_from-json
[
{
title: "from json",
type: "command",
flags: true
}
]
> open command_from-json | from json
━━━━━━━━━━━┯━━━━━━━━━┯━━━━━━━
title │ type │ flags
───────────┼─────────┼───────
from json │ command │ Yes
━━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━