geofffranks / spruce

A BOSH template merge tool
MIT License
433 stars 78 forks source link

Add to array #296

Closed arun-a-nayagam closed 5 years ago

arun-a-nayagam commented 5 years ago

Hi,

I want to add a value to an array, concat only deals with strings. Is there a different way to achieve the below behaviour

supported:
  methods:
     - GET
     - POST

api:
  methods: (( concat "OPTIONS" supported.methods))
Expected output: ``` api: methods: - OPTIONS - GET - POST ```
arun-a-nayagam commented 5 years ago

A grab does what I expected.

api: methods: (( grab "OPTIONS" supported.methods))

Thank you.