├── .github ├── dependabot.yml └── workflows │ ├── no-response.yml │ ├── post_summaries.yaml │ ├── publish.yaml │ └── test-package.yml ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── analysis_options.yaml ├── example ├── example.dart └── json2yaml.dart ├── lib ├── src │ ├── editor.dart │ ├── equality.dart │ ├── errors.dart │ ├── list_mutations.dart │ ├── map_mutations.dart │ ├── source_edit.dart │ ├── strings.dart │ ├── utils.dart │ └── wrap.dart └── yaml_edit.dart ├── pubspec.yaml └── test ├── alias_test.dart ├── append_test.dart ├── editor_test.dart ├── golden_test.dart ├── insert_test.dart ├── naughty_test.dart ├── parse_test.dart ├── prepend_test.dart ├── preservation_test.dart ├── problem_strings.dart ├── random_test.dart ├── remove_test.dart ├── source_edit_test.dart ├── special_test.dart ├── splice_test.dart ├── string_test.dart ├── test_case.dart ├── test_utils.dart ├── testdata ├── README.md ├── input │ ├── allowed_characters_in_keys.test │ ├── basic.test │ ├── basic_list.test │ ├── ignore_key_order.test │ ├── issue_55.test │ ├── nested_block_map.test │ ├── pubspec.test │ ├── remove_block_list.test │ ├── remove_flow_map.test │ ├── remove_key.test │ ├── remove_key_with_trailing_comma.test │ ├── remove_nested_key.test │ ├── remove_nested_key_with_null.test │ ├── remove_nested_key_with_trailing_comma.test │ ├── respect_key_order.test │ ├── spaces.test │ ├── special_keywords.test │ ├── splice_list_in_nested_block_with_weird_spaces.test │ ├── splice_list_in_nested_block_without_initial_spaces.test │ └── splicelist_in_nested_block_list.test └── output │ ├── allowed_characters_in_keys.golden │ ├── basic.golden │ ├── basic_list.golden │ ├── ignore_key_order.golden │ ├── issue_55.golden │ ├── nested_block_map.golden │ ├── pubspec.golden │ ├── remove_block_list.golden │ ├── remove_flow_map.golden │ ├── remove_key.golden │ ├── remove_key_with_trailing_comma.golden │ ├── remove_nested_key.golden │ ├── remove_nested_key_with_null.golden │ ├── remove_nested_key_with_trailing_comma.golden │ ├── respect_key_order.golden │ ├── spaces.golden │ ├── special_keywords.golden │ ├── splice_list_in_nested_block_with_weird_spaces.golden │ ├── splice_list_in_nested_block_without_initial_spaces.golden │ └── splicelist_in_nested_block_list.golden ├── update_test.dart ├── utils_test.dart ├── windows_test.dart └── wrap_test.dart /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/no-response.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/.github/workflows/no-response.yml -------------------------------------------------------------------------------- /.github/workflows/post_summaries.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/.github/workflows/post_summaries.yaml -------------------------------------------------------------------------------- /.github/workflows/publish.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/.github/workflows/publish.yaml -------------------------------------------------------------------------------- /.github/workflows/test-package.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/.github/workflows/test-package.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.dart_tool/ 2 | /.packages 3 | /pubspec.lock 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/README.md -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/analysis_options.yaml -------------------------------------------------------------------------------- /example/example.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/example/example.dart -------------------------------------------------------------------------------- /example/json2yaml.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/example/json2yaml.dart -------------------------------------------------------------------------------- /lib/src/editor.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/lib/src/editor.dart -------------------------------------------------------------------------------- /lib/src/equality.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/lib/src/equality.dart -------------------------------------------------------------------------------- /lib/src/errors.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/lib/src/errors.dart -------------------------------------------------------------------------------- /lib/src/list_mutations.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/lib/src/list_mutations.dart -------------------------------------------------------------------------------- /lib/src/map_mutations.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/lib/src/map_mutations.dart -------------------------------------------------------------------------------- /lib/src/source_edit.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/lib/src/source_edit.dart -------------------------------------------------------------------------------- /lib/src/strings.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/lib/src/strings.dart -------------------------------------------------------------------------------- /lib/src/utils.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/lib/src/utils.dart -------------------------------------------------------------------------------- /lib/src/wrap.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/lib/src/wrap.dart -------------------------------------------------------------------------------- /lib/yaml_edit.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/lib/yaml_edit.dart -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/pubspec.yaml -------------------------------------------------------------------------------- /test/alias_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/alias_test.dart -------------------------------------------------------------------------------- /test/append_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/append_test.dart -------------------------------------------------------------------------------- /test/editor_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/editor_test.dart -------------------------------------------------------------------------------- /test/golden_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/golden_test.dart -------------------------------------------------------------------------------- /test/insert_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/insert_test.dart -------------------------------------------------------------------------------- /test/naughty_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/naughty_test.dart -------------------------------------------------------------------------------- /test/parse_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/parse_test.dart -------------------------------------------------------------------------------- /test/prepend_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/prepend_test.dart -------------------------------------------------------------------------------- /test/preservation_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/preservation_test.dart -------------------------------------------------------------------------------- /test/problem_strings.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/problem_strings.dart -------------------------------------------------------------------------------- /test/random_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/random_test.dart -------------------------------------------------------------------------------- /test/remove_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/remove_test.dart -------------------------------------------------------------------------------- /test/source_edit_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/source_edit_test.dart -------------------------------------------------------------------------------- /test/special_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/special_test.dart -------------------------------------------------------------------------------- /test/splice_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/splice_test.dart -------------------------------------------------------------------------------- /test/string_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/string_test.dart -------------------------------------------------------------------------------- /test/test_case.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/test_case.dart -------------------------------------------------------------------------------- /test/test_utils.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/test_utils.dart -------------------------------------------------------------------------------- /test/testdata/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/README.md -------------------------------------------------------------------------------- /test/testdata/input/allowed_characters_in_keys.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/allowed_characters_in_keys.test -------------------------------------------------------------------------------- /test/testdata/input/basic.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/basic.test -------------------------------------------------------------------------------- /test/testdata/input/basic_list.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/basic_list.test -------------------------------------------------------------------------------- /test/testdata/input/ignore_key_order.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/ignore_key_order.test -------------------------------------------------------------------------------- /test/testdata/input/issue_55.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/issue_55.test -------------------------------------------------------------------------------- /test/testdata/input/nested_block_map.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/nested_block_map.test -------------------------------------------------------------------------------- /test/testdata/input/pubspec.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/pubspec.test -------------------------------------------------------------------------------- /test/testdata/input/remove_block_list.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/remove_block_list.test -------------------------------------------------------------------------------- /test/testdata/input/remove_flow_map.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/remove_flow_map.test -------------------------------------------------------------------------------- /test/testdata/input/remove_key.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/remove_key.test -------------------------------------------------------------------------------- /test/testdata/input/remove_key_with_trailing_comma.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/remove_key_with_trailing_comma.test -------------------------------------------------------------------------------- /test/testdata/input/remove_nested_key.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/remove_nested_key.test -------------------------------------------------------------------------------- /test/testdata/input/remove_nested_key_with_null.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/remove_nested_key_with_null.test -------------------------------------------------------------------------------- /test/testdata/input/remove_nested_key_with_trailing_comma.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/remove_nested_key_with_trailing_comma.test -------------------------------------------------------------------------------- /test/testdata/input/respect_key_order.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/respect_key_order.test -------------------------------------------------------------------------------- /test/testdata/input/spaces.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/spaces.test -------------------------------------------------------------------------------- /test/testdata/input/special_keywords.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/special_keywords.test -------------------------------------------------------------------------------- /test/testdata/input/splice_list_in_nested_block_with_weird_spaces.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/splice_list_in_nested_block_with_weird_spaces.test -------------------------------------------------------------------------------- /test/testdata/input/splice_list_in_nested_block_without_initial_spaces.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/splice_list_in_nested_block_without_initial_spaces.test -------------------------------------------------------------------------------- /test/testdata/input/splicelist_in_nested_block_list.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/input/splicelist_in_nested_block_list.test -------------------------------------------------------------------------------- /test/testdata/output/allowed_characters_in_keys.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/allowed_characters_in_keys.golden -------------------------------------------------------------------------------- /test/testdata/output/basic.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/basic.golden -------------------------------------------------------------------------------- /test/testdata/output/basic_list.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/basic_list.golden -------------------------------------------------------------------------------- /test/testdata/output/ignore_key_order.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/ignore_key_order.golden -------------------------------------------------------------------------------- /test/testdata/output/issue_55.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/issue_55.golden -------------------------------------------------------------------------------- /test/testdata/output/nested_block_map.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/nested_block_map.golden -------------------------------------------------------------------------------- /test/testdata/output/pubspec.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/pubspec.golden -------------------------------------------------------------------------------- /test/testdata/output/remove_block_list.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/remove_block_list.golden -------------------------------------------------------------------------------- /test/testdata/output/remove_flow_map.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/remove_flow_map.golden -------------------------------------------------------------------------------- /test/testdata/output/remove_key.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/remove_key.golden -------------------------------------------------------------------------------- /test/testdata/output/remove_key_with_trailing_comma.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/remove_key_with_trailing_comma.golden -------------------------------------------------------------------------------- /test/testdata/output/remove_nested_key.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/remove_nested_key.golden -------------------------------------------------------------------------------- /test/testdata/output/remove_nested_key_with_null.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/remove_nested_key_with_null.golden -------------------------------------------------------------------------------- /test/testdata/output/remove_nested_key_with_trailing_comma.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/remove_nested_key_with_trailing_comma.golden -------------------------------------------------------------------------------- /test/testdata/output/respect_key_order.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/respect_key_order.golden -------------------------------------------------------------------------------- /test/testdata/output/spaces.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/spaces.golden -------------------------------------------------------------------------------- /test/testdata/output/special_keywords.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/special_keywords.golden -------------------------------------------------------------------------------- /test/testdata/output/splice_list_in_nested_block_with_weird_spaces.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/splice_list_in_nested_block_with_weird_spaces.golden -------------------------------------------------------------------------------- /test/testdata/output/splice_list_in_nested_block_without_initial_spaces.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/splice_list_in_nested_block_without_initial_spaces.golden -------------------------------------------------------------------------------- /test/testdata/output/splicelist_in_nested_block_list.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/testdata/output/splicelist_in_nested_block_list.golden -------------------------------------------------------------------------------- /test/update_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/update_test.dart -------------------------------------------------------------------------------- /test/utils_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/utils_test.dart -------------------------------------------------------------------------------- /test/windows_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/windows_test.dart -------------------------------------------------------------------------------- /test/wrap_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/yaml_edit/HEAD/test/wrap_test.dart --------------------------------------------------------------------------------