toml docs

This commit is contained in:
Mike Farah 2023-03-31 10:24:12 +11:00
parent d00ffd9ce8
commit 496035c75a
2 changed files with 1 additions and 21 deletions

View File

@ -88,24 +88,3 @@ owner:
suburb: nice suburb: nice
``` ```
## Parse: with header
Given a sample.toml file of:
```toml
[servers]
[servers.alpha]
ip = "10.0.0.1"
```
then
```bash
yq -oy '.' sample.toml
```
will output
```yaml
servers:
alpha:
ip: 10.0.0.1
```

View File

@ -170,6 +170,7 @@ var tomlScenarios = []formatScenario{
}, },
{ {
description: "Parse: with header", description: "Parse: with header",
skipDoc: true,
input: sampleWithHeader, input: sampleWithHeader,
expected: expectedSampleWithHeader, expected: expectedSampleWithHeader,
scenarioType: "decode", scenarioType: "decode",