Mike Farah
cda9a82906
Refactoring write command to allow splat
2019-05-01 08:40:35 +10:00
Renzo Crisóstomo
23543ee031
Add test for --allow-empty flag in merge command
2019-03-22 09:13:39 +11:00
Mike Farah
77c8f22a79
Bump golang version to 1.11
2019-01-21 09:37:22 +11:00
Kyle Titus
478208b7c4
Added Windows support for the "--inplace" command flag
2019-01-07 10:07:08 +11:00
Mike Farah
16bde80334
Prefix now supports arrays
2018-11-20 09:47:17 +11:00
matfax
48dcc15281
feat: add prefix command
2018-11-20 08:53:25 +11:00
Thad Craft
a9ade5a832
fixing test lint
2018-10-25 15:46:57 +11:00
Thad Craft
8d6e3a6a75
copying file permissions from original file when inline merging - Closes #180
2018-10-25 15:46:57 +11:00
Mike Farah
d84254c30f
moar tests
2018-07-08 22:04:31 +10:00
Mike Farah
18bb4eee96
moar tests
2018-07-08 21:57:56 +10:00
Mike Farah
86b9fe3ef9
Can read from all documents
2018-07-08 21:47:01 +10:00
Mike Farah
2c15048ddb
Added merge with append
2018-07-07 15:26:56 +10:00
Mike Farah
b3b60665e4
Fixed toJson command line option, should only apply to read command
2018-06-26 14:09:56 +10:00
Mike Farah
fb87f638f2
Multi doc supports updating all docs
2018-06-20 11:45:51 +10:00
Mike Farah
6d6e476ac8
Use gopkg managed versions of dependencies, for better go get support
2018-06-18 11:37:42 +10:00
Mike Farah
c38f19e0a9
Enabled multi document support for merge (first document only)
2018-06-15 16:48:36 +10:00
Mike Farah
8ca85b1c64
Simplified merge command
2018-06-15 16:40:52 +10:00
Mike Farah
1a4064429d
Delete now supports multi docs!
2018-06-15 09:43:20 +10:00
Mike Farah
297522cbdd
Write supports multidoc yaml, better use of yaml library streaming
2018-06-15 08:39:59 +10:00
Mike Farah
be991fdacd
Read test
2018-06-15 08:39:29 +10:00
Tim Hobbs
26153b3eb5
Rename to yq
2018-04-09 15:58:12 +10:00
kenjones
185d1faadb
Bugfix: Append when array empty results in null value
...
Initialize new array as empty instead of having a single value.
Resolves : #41
2017-09-25 09:31:06 -04:00
kenjones
c5f80a105d
Feature: Add append to array
...
Adds the ability to append a value to an array instead of having to
know the index of the values within the array.
Resolves : #17
2017-09-23 20:21:16 -04:00
Kenny Jones
dda9b1f087
Merge pull request #37 from kenjones-cisco/bugfix/read-yaml-array
...
Bugfix: Read yaml array
2017-09-23 14:04:33 -04:00
Kenny Jones
683de28c64
Merge pull request #34 from kenjones-cisco/feature/add-version
...
Feature: Adds support for --version
2017-09-23 14:04:18 -04:00
kenjones
51fa1a87b7
Bugfix: Read yaml array
...
Parsing an array into MapSlice results in `[{nil, nil}]`.
Parse into `[]map[interface{}]interface{}` allows for the processing of
top level arrays in the document.
Resolves : #23
2017-09-23 13:53:04 -04:00
kenjones
499974c27e
Bugfix: Write empty array value
...
When the value is `[]` set the value to empty array instead of `'[]'`.
Resolves : #21
2017-09-23 09:36:17 -04:00
kenjones
72bd88cfa5
Feature: Adds support for --version
...
Resolves : #24
2017-09-23 01:08:39 -04:00
kenjones
6980be3800
Feature: Adds merge command
...
Adds merge command for merging multiple yaml files together.
Resolves : #31
2017-09-23 14:45:59 +10:00
kenjones
53b2c64747
Task: Increase test coverage, includes refactor
...
Adds test cases to increase test coverage.
Refactors code to enable adding tests by reducing the number of
locations where `os.Exit()` is called from.
2017-09-22 23:01:46 -04:00