Skip to content

feature: support adding comments #1941

Open
@xsahil03x

Description

@xsahil03x

Currently there isn't any method to add or update comments in a yaml file.

Usecase: we currently use a script to update dependencies in our flutter projects, We also want to append comments to it showcasing that it's AutoGenerated and should not be modified by hand. invertase/melos#692

A similar approach is being used in Flutter repo: https://github.com/flutter/flutter/blob/master/packages/flutter/pubspec.yaml#L33-L49

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributions-welcomeContributions welcome to help resolve this (the resolution is expected to be clear from the issue)package:yaml_edittype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions