commit | 46eb45d005aea2953488e55cee0194ba249445c7 | [log] [tgz] |
---|---|---|
author | Sam Rawlins <sam.rawlins@gmail.com> | Thu Mar 17 04:30:36 2022 -0700 |
committer | GitHub <noreply@github.com> | Thu Mar 17 12:30:36 2022 +0100 |
tree | 18a0668a6139efdcd90d7be1092ffc270a5ab2bf | |
parent | bd96cbf646a7c5823fb57a6e3a48ccd122e29d51 [diff] |
Do not add trailing whitespace to new map keys (#16)
A library for YAML manipulation while preserving comments.
A simple usage example:
import 'package:yaml_edit/yaml_edit.dart'; void main() { final yamlEditor = YamlEditor('{YAML: YAML}'); yamlEditor.update(['YAML'], "YAML Ain't Markup Language"); print(yamlEditor); // Expected output: // {YAML: YAML Ain't Markup Language} }
Testing is done in two strategies: Unit testing (/test/editor_test.dart
) and Golden testing (/test/golden_test.dart
). More information on Golden testing and the input/output format can be found at /test/testdata/README.md
.
These tests are automatically run with pub run test
.