Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appending many items to an array #4

Open
drich10 opened this issue Dec 9, 2016 · 1 comment
Open

Appending many items to an array #4

drich10 opened this issue Dec 9, 2016 · 1 comment

Comments

@drich10
Copy link

drich10 commented Dec 9, 2016

It would be lovely if I could append multiple items in a single operation. It can become a bit unwieldily writing it many times.

- type: replace
  path: /releases/-
  value:
    name: extra-release-0
    version: 0
    url: file://extra-release-0

- type: replace
  path: /releases/-
  value:
    name: extra-release-1
    version: 1
    url: file://extra-release-1

- type: replace
  path: /releases/-
  value:
    name: extra-release-2
    version: 2
    url: file://extra-release-2

--->

?

Wish I had a good suggestion for what could be done here 😋

@jtarchie
Copy link

jtarchie commented Feb 9, 2017

A proposal:

- type: append
  path: /releases/
  values:
    -  name: extra-release-0
       version: 0
       url: file://extra-release-0
    -  name: extra-release-1
       version: 1
       url: file://extra-release-1
    -  name: extra-release-2
       version: 2
       url: file://extra-release-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants