mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-14 15:18:06 +00:00
268 B
268 B
Add behaves differently according to the type of the LHS:
- arrays: concatenate
- number scalars: arithmetic addition (soon)
- string scalars: concatenate (soon)
Use +=
as append assign for things like increment. .a += .x
is equivalent to running .a |= . + .x
.