-
Hi, file1.yaml
file2.yaml
How can I merge services from file2.yaml into services from file1.yaml? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
mikefarah
Oct 16, 2021
Replies: 1 comment
-
TLDR:
Explanation:
Note that in place of |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mikefarah
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TLDR:
Explanation:
ea
(eval-all) to load all file in memory.select(fi==0)
, pipe into the path you want to update.mgwaskong.kong.dblessConfig.config.services
. This is in brackets so it becomes the LHS of the=
operatorNote that in place of
=
you can use+=
if you want to append to an existing array,*
to merge etc.