Commit Graph

71 Commits

Author SHA1 Message Date
Mike Farah c2c49dcb17 Fixed help length to prevent horizontal scroll in README 2018-06-27 19:37:18 +10:00
Mike Farah c86f8b426b Fixed writing inplace from docker 2018-06-27 12:06:31 +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 ae0c042ae6 Use gopkg managed version of yaml to properly support go get 2018-06-18 11:12:52 +10:00
Mike Farah 113586b5e0 Updating help for multi doc 2018-06-15 20:31:29 +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 08870f8ec9 Simplified 'new' command 2018-06-15 16:21:18 +10:00
Mike Farah 94b217984c Better error handling 2018-06-15 16:11:13 +10:00
Mike Farah 2f5a481cc3 Detect when there is no document X to update 2018-06-15 09:54:11 +10:00
Mike Farah 1a4064429d Delete now supports multi docs! 2018-06-15 09:43:20 +10:00
Mike Farah 1b22e1d812 Fixed delete command for arrays 2018-06-15 09:03:42 +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 f340db5795 Extract out reading of write commands 2018-06-13 09:24:37 +10:00
Mike Farah ab852ceafa Separate reading stream from processing 2018-06-13 09:11:54 +10:00
Mike Farah 06a843e9b2 Read now handles multiple documents 2018-06-12 15:41:09 +10:00
Matthew Huxtable 8072e66d46 Add delete command
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
2018-05-07 15:52:29 +10:00
Mike Farah ee8ffd458a Multiline value fix - multi line strings no longer printed as a yaml block
Although printing the string as a yaml block can be argued to be technically correct, in practical terms it's more useful to just print out the multiline string as is.
2018-03-27 16:22:24 +11:00
Mike Farah cb48ba7173 Rename to yq 2017-12-18 15:29:41 +11:00