pdq
pdq
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.
Installation
$ shards build
cp bin/pdq ~/bin
(or somewhere else in your path)
Usage
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.
Contributing
- 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
Contributors
- Will Lewis - creator and maintainer
Repository
pdq
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- over 2 years ago
- May 5, 2022
License
MIT License
Links
Synced at
Sat, 21 Dec 2024 22:13:21 GMT
Languages