yaml-union: Read multiple yaml-files and override fields recursively

[ bsd3, data, library, program ] [ Propose Tags ]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.1, 0.0.2, 0.0.3
Change log changelog.md
Dependencies base (>=4 && <5), bytestring, optparse-applicative, unordered-containers, yaml, yaml-union [details]
License BSD-3-Clause
Author Michel Kuhlmann
Maintainer michel@kuhlmanns.info
Category Data
Home page https://github.com/michelk/yaml-overrides.hs
Uploaded by michelk at 2016-01-06T07:20:52Z
Distributions
Executables yaml-union
Downloads 2274 total (12 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-01-06 [all 1 reports]

Readme for yaml-union-0.0.1

[back to package description]

Command-line program to union yaml-files

The command-line program yaml-union unions yaml-files recursively. When a key appears in multiple files, the values will be overridden with the order given on the command-line. If both values are hashes, the overrides will be done recursively.

The program could be useful in conjunction with pandoc when passing in meta-data from external files.

e.g.

yaml-union -d meta1.yaml meta2.yaml | pandoc text.md --template tmpl.html

Installation

git clone https://github.com/michelk/yaml-union.hs
cd yaml-unions.hs
stack install

Todo

  • Optional define yaml-entries on the command-line eg yaml-union -V blue=blau col.yaml