basho / clique

CLI Framework for Erlang
Apache License 2.0
147 stars 49 forks source link

Add CSV formatter and support for other custom formats in general #42

Closed nickelization closed 9 years ago

nickelization commented 9 years ago

This PR adds support for the --format global flag. With these changes we can specify --format=human or --format=csv. We also allow for easily adding more builtin formats in the future, or for registering formats at runtime using the clique:register_writer/2 API call.

This fixes issue #16.

macintux commented 9 years ago

Future enhancement: allow options like: --format=csv+quotes (in this case, to put quotes around all cells by default).

nickelization commented 9 years ago

@borshop merge

Basho-JIRA commented 9 years ago

This has all been implemented, reviewed, and merged. For reference, there are two PRs involved in this feature:

https://github.com/basho/clique/pull/42 https://github.com/basho/clique/pull/45

_[posted via JIRA by Nick Marino]_