Added scalar output for TOML (#1617)

This commit is contained in:
Mike Farah
2023-04-03 15:40:06 +10:00
parent a389bb64b8
commit eba075294a
5 changed files with 88 additions and 3 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