@hackage / yaml-union

Read multiple yaml-files and override fields recursively

Latest0.0.3

About

Metadata

  • Last updated , by michelk
  • License BSD-3-Clause
  • Maintained by: michel@kuhlmanns.info

  • Lottery factor: 0

Links

Installation

Readme

Command-line program to union yaml-files

  • Travis:
  • Hackage:

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