mirror of https://github.com/mikefarah/yq.git
toml docs
This commit is contained in:
parent
d00ffd9ce8
commit
496035c75a
|
@ -88,24 +88,3 @@ owner:
|
|||
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",
|
||||
skipDoc: true,
|
||||
input: sampleWithHeader,
|
||||
expected: expectedSampleWithHeader,
|
||||
scenarioType: "decode",
|
||||
|
|
Loading…
Reference in New Issue