8000 Allow replacing updating keys · Issue #13 · cppforlife/go-patch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Allow replacing updating keys #13
Open
@tjvman

Description

@tjvman

I was working with a BOSH manifest that had numerous incorrect keys specified, e.g.:

- name: foo
  BADtype: password

and wanted to change BADtype to type using an ops-file (because I did not own the repo the manifest belonged to). However, the only supported way to do this is to use a remove to get rid of the key and its value, and then a replace to add the correct key with the same value. This workflow requires placing the entire value of the incorrect key (which could be large) into the ops-file twice.

I would like to have a operation similar to replace that allows me to change a key in a single invocation without having to include the key's value block as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0