diff options
author | Doug Hellmann <doug.hellmann@dreamhost.com> | 2012-04-25 17:09:16 -0400 |
---|---|---|
committer | Doug Hellmann <doug.hellmann@dreamhost.com> | 2012-04-25 17:09:16 -0400 |
commit | c5d7296c30da2e9f3bf634d3c4a5f50bb8df8299 (patch) | |
tree | 6d98ac86687f2c9a6312189cb4846dd6aea795e0 | |
parent | f8f4f3ab0cdde1135705849bfdf214186208fadf (diff) | |
download | cliff-tablib-c5d7296c30da2e9f3bf634d3c4a5f50bb8df8299.tar.gz |
add example output to the list formatters
-rw-r--r-- | docs/source/list_commands.rst | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/source/list_commands.rst b/docs/source/list_commands.rst index 84dfe6e..2dbf748 100644 --- a/docs/source/list_commands.rst +++ b/docs/source/list_commands.rst @@ -34,6 +34,15 @@ The ``csv`` formatter produces a comma-separated-values document as output. CSV data can be imported into a database or spreadsheet for further manipulation. +:: + + (.venv)$ cliffdemo files -f csv + "Name","Size" + "build",136 + "cliffdemo.log",2690 + "Makefile",5569 + "source",408 + PrettyTable ----------- @@ -42,6 +51,18 @@ formatted for human consumption. .. _PrettyTable: http://code.google.com/p/prettytable/ +:: + + (.venv)$ cliffdemo files + +---------------+------+ + | Name | Size | + +---------------+------+ + | build | 136 | + | cliffdemo.log | 2546 | + | Makefile | 5569 | + | source | 408 | + +---------------+------+ + Creating Your Own Formatter --------------------------- |