mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 13:48:06 +00:00
toml docs
This commit is contained in:
parent
d00ffd9ce8
commit
496035c75a
@ -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
|
|
||||||
```
|
|
||||||
|
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user