A utility for dealing with PlainData files.
PlainData is a format focused on a plaintext description and a list of data sections each containing either more plaintext or some set of data (often in csv or similar).
See plaindata.md for more details on the format.
$ shards build
cp bin/pdq ~/bin
(or somewhere else in your path)
usage: pdq SUBCOMMAND [ARGS] FILE
subcommands:
version prints pdq's version
help prints this help
description NAME prints the description section in FILE
list lists the sections available for querying in FILE
read NAME prints the contents of the section NAME in FILE
append NAME [OPT] appends STDIN to the section NAME of the FILE
run [NAME] executes the section NAME as if it were a script *
if NAME is not provided, "Script" is used *
if section NAME is not found, pqd returns 1 *
append options:
-f, --force add a new section at the end if it was not found *
-n, --no-newline avoid a blank line between sections *
* Feature is not implemented yet.
- Fork it (https://github.com/Willamin/pdq/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Will Lewis - creator and maintainer