class documentation
class NestedTextToTOML(_NestedTextToTypedFormat, _NestedTextToTypedFormatSupportDate): (source)
Read NestedText and output its content as TOML.
By default, generated TOML values will only contain strings, arrays, and maps, but you can cast nodes matching YAML Paths to boolean, number, or date.
Casting switches may be before or after file arguments.
Examples
nt2toml config.nt >config.toml cat config.nt | nt2toml nt2toml --schema config.types.nt config.nt >config.toml nt2toml --int stats.total --boolean config.enabled data.nt
Method | main |
Undocumented |
Instance Variable | bool |
Undocumented |
Instance Variable | date |
Undocumented |
Instance Variable | num |
Undocumented |
Inherited from _NestedTextToTypedFormat
:
Class Variable | schema |
Undocumented |
Inherited from _ColorApp
(via _NestedTextToTypedFormat
, _NestedTextToTypedFormatSupportDate
):
Constant | ALLOW |
Undocumented |
Constant | COLOR |
Undocumented |
Constant | VERSION |
Undocumented |