W3cubDocs

/Nushell

from toml for formats

Parse text as .toml and create record.

Signature

> from toml {flags}

Input/output types:

input output
string record

Examples

Converts toml formatted string to record

>'a = 1'|from toml
╭───┬───╮
a1
╰───┴───╯

Converts toml formatted string to record

>'a = 1
b = [1, 2]'|from toml
╭───┬───────────╮
a1
╭───┬───╮
b01
12
╰───┴───╯
╰───┴───────────╯

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/from_toml.html