mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-06 18:24:57 +08:00
Empty TOML table is an empty object
This commit is contained in:
@@ -104,3 +104,19 @@ owner:
|
||||
suburb: nice
|
||||
```
|
||||
|
||||
## Parse: Empty Table
|
||||
Given a sample.toml file of:
|
||||
```toml
|
||||
|
||||
[dependencies]
|
||||
|
||||
```
|
||||
then
|
||||
```bash
|
||||
yq -oy '.' sample.toml
|
||||
```
|
||||
will output
|
||||
```yaml
|
||||
dependencies: {}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user