From c5d7296c30da2e9f3bf634d3c4a5f50bb8df8299 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 25 Apr 2012 17:09:16 -0400 Subject: add example output to the list formatters --- docs/source/list_commands.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 --------------------------- -- cgit v1.2.1