This commit is contained in:
Mike Farah
2023-05-23 13:28:47 +10:00
parent 2f98ff832c
commit 3388f9f3e2
3 changed files with 103 additions and 0 deletions
+16
View File
@@ -38,6 +38,22 @@ person:
address: 12 cat st
```
## Encode: Scalar
Given a sample.toml file of:
```toml
person.name = "hello"
person.address = "12 cat st"
```
then
```bash
yq '.person.name' sample.toml
```
will output
```yaml
hello
```
## Parse: inline table
Given a sample.toml file of:
```toml