to toml

For formats.

Convert record into .toml text.

Command Type

built-in

Signature

> to toml {flags}

Flags

  • --serialize, -s: Serialize nushell types that cannot be deserialized.

Input/output types:

input output
record string

Examples

Outputs an TOML string representing the contents of this record.

> {foo: 1 bar: 'qwe'} | to toml
foo = 1
bar = "qwe"

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.