feat(yaml): YAML command enhancements (Sprint 9.0) #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Enhances the yaml command family with 5 new features:
items[0].name, with negative index support (items[-1])-as the value argument--dry-run--quiet--required-fileChanges
yaml-set/yaml-multiset--dry-runflag to preview changes without writing--quietflag to suppress success output (errors still shown)yaml-get/yaml-multiget--required-fileflag to load keys from a file#comments in required keys filesMCP Tools
yaml_set,yaml_multiset,yaml_multigetwith new parametersTest Plan
Files Changed
internal/support/commands/yaml.go(+156 lines)internal/support/commands/yaml_helpers.go(+439 lines)internal/support/commands/yaml_test.go(+1119 lines)internal/support/mcpserver/handlers.go(+25 lines)internal/support/mcpserver/tools.go(+30 lines)internal/support/mcpserver/tools_test.go(updated required fields)