mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-01 14:14:52 +08:00
Added scalar output for TOML (#1617)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user