From 496035c75a84ae0f645eca12d97e0c6b63417f7b Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Fri, 31 Mar 2023 10:24:12 +1100 Subject: [PATCH] toml docs --- pkg/yqlib/doc/usage/toml.md | 21 --------------------- pkg/yqlib/toml_test.go | 1 + 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/pkg/yqlib/doc/usage/toml.md b/pkg/yqlib/doc/usage/toml.md index b40b827c..1ebe2336 100644 --- a/pkg/yqlib/doc/usage/toml.md +++ b/pkg/yqlib/doc/usage/toml.md @@ -88,24 +88,3 @@ owner: 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 -``` - diff --git a/pkg/yqlib/toml_test.go b/pkg/yqlib/toml_test.go index 7c0ab3c7..1b29c4f0 100644 --- a/pkg/yqlib/toml_test.go +++ b/pkg/yqlib/toml_test.go @@ -170,6 +170,7 @@ var tomlScenarios = []formatScenario{ }, { description: "Parse: with header", + skipDoc: true, input: sampleWithHeader, expected: expectedSampleWithHeader, scenarioType: "decode",