When there is no match at a given path, numeric keys are assumed to be strings.
To create an array '+' must be used.
e.g: yq n thing[+].cat fred
will create an array under thing, whereas
yq n thing[0].cat fred
will create a map under thing, with a key '0'
The delete (short option "d") will delete the YAML subtree at the
provided path in the specified file (or STDIN), if it the node exists.
More complex support is currently omitted, for example:
- specify nodes to delete using an external script
- deleting common elements from all elements of an array
The base directory has all shell scripts in scripts/
and all example/test files in examples/.
A Makefile provides all the commands with helpful information.
If a developer simply types `make` then vendor is properly updated,
the code is formatted, linted, tested, built, acceptance test run,
and installed.
Linting errors resolved.
Ignored test case (`TestParsePath`) updated to work as expected.