# HG changeset patch # User František Kučera # Date 1543780058 -3600 # Node ID 46042297e0d6008a2912ccc8f2ecef56d581d846 # Parent c079bc35b9b81c9e4616d19b30ffbd989ef0518a relpipe-tr-validator: specification and examples diff -r c079bc35b9b8 -r 46042297e0d6 relpipe-data/examples.xml --- a/relpipe-data/examples.xml Sun Dec 02 17:12:34 2018 +0100 +++ b/relpipe-data/examples.xml Sun Dec 02 20:47:38 2018 +0100 @@ -7,9 +7,37 @@ 40 + + +

relpipe-tr-validator

+

- The world is relational! + Just a passthrough command, so these pipelines should produce the same hash: +

+ + + +

+ This tool can be used for testing whether a file contains valid relational data:

+ + /dev/null; then + echo "valid relational data"; +else + echo "garbage"; +fi]]> + +

or as a one-liner:

+ + /dev/null && echo "ok" || echo "error"]]> + +

+ If an error is found, it is reported on STDERR. So just omit the & in order to see the error message. +

+
diff -r c079bc35b9b8 -r 46042297e0d6 relpipe-data/implementation.xml --- a/relpipe-data/implementation.xml Sun Dec 02 17:12:34 2018 +0100 +++ b/relpipe-data/implementation.xml Sun Dec 02 20:47:38 2018 +0100 @@ -25,6 +25,7 @@ relpipe-out-xml.cpp executable output c++ GNU GPLv3+ relpipe-tr-grep.cpp executable transformation c++ GNU GPLv3+ relpipe-tr-sed.cpp executable transformation c++ GNU GPLv3+ + relpipe-tr-validator.cpp executable transformation c++ GNU GPLv3+