mirror of
https://github.com/mikefarah/yq.git
synced 2025-01-15 04:55:36 +00:00
toml docs
This commit is contained in:
parent
dc45add0e9
commit
2f98ff832c
@ -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
|
|
||||||
```
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user