changeset 347:432ccab7c6c8

going to try moving output redirection to outside precmd, postcmd hooks
author catherine@Drou
date Tue, 16 Feb 2010 16:33:47 -0500
parents 49dd1ce6cfd6
children 09145e5d7c26
files cmd2.py docs/pycon2010/pycon2010.rst
diffstat 2 files changed, 34 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/cmd2.py	Tue Feb 16 15:47:17 2010 -0500
+++ b/cmd2.py	Tue Feb 16 16:33:47 2010 -0500
@@ -759,6 +759,8 @@
         This (`cmd2`) version of `onecmd` already override's `cmd`'s `onecmd`.
 
         """
+        # TODO: output from precmd and postcmd goes untrapped... and I don't
+        # know how to fix it...
         if not line:
             return self.emptyline()
         if not pyparsing.Or(self.commentGrammars).setParseAction(lambda x: '').transformString(line):
--- a/docs/pycon2010/pycon2010.rst	Tue Feb 16 15:47:17 2010 -0500
+++ b/docs/pycon2010/pycon2010.rst	Tue Feb 16 16:33:47 2010 -0500
@@ -198,27 +198,48 @@
 
 Third-party module in PyPI
 
-What you get
-============
+Absolutely free
+===============
 
     * Script files
     * Commands at invocation
     * Output redirection    
     * Python
     * Transcript-based testing
+
+But wait, there's more
+======================
+
+    * Abbreviated commands
+    * Shell commands
+    * Quitting
+    * Timing
+    * Echo
+    * Debug
     
-    * Searchable command history
-    * Quitting the application
-    * Comments
-    * Misc. pre-defined commands
+For a few keystrokes more...
+============================
+
+    * Default to shell
+    * Color output
+    * Shortcuts
+    
+But wait, there's more
+======================
+
+    * Case-insensitive commands
+    * Abbreviated commands
+    * Quitting
+    * Timing
+    * Echo
+    * Debug
+    * Color output
+
     
 More
 ====
 
     * Case-insensitivity
-    * Shortcuts
+    * One-character shortcuts
     * Default to shell
-    * Timing
-    * Echo
-    * Debug
-    * Other user-settable parameters
+    
\ No newline at end of file