diff docs/pycon2010/pycon2010.rst @ 345:6fe1e75e3a67

transcript test wasn't running pre and post cmd hooks
author catherine@Drou
date Tue, 16 Feb 2010 15:13:11 -0500
parents 4300ef912f4a
children 49dd1ce6cfd6
line wrap: on
line diff
--- a/docs/pycon2010/pycon2010.rst	Tue Feb 16 14:05:25 2010 -0500
+++ b/docs/pycon2010/pycon2010.rst	Tue Feb 16 15:13:11 2010 -0500
@@ -36,9 +36,9 @@
 - "Command-line interface"
 - "Shell"
 
-* Accepts free text input at prompt
-* Outputs lines of text
-* Persistent CLI environment
+1. Accepts free text input at prompt
+2. Outputs lines of text
+3. (repeat)
 
 Examples
 ========
@@ -55,9 +55,9 @@
 != Command Line Utilities
 =========================
 
-* Accept arguments at invocation
-* execution
-* terminate
+1. Accepts arguments at invocation
+2. executes
+3. terminates
 
 Examples
 --------
@@ -163,7 +163,8 @@
                 self.gold -= int(arg)
             except:
                 if arg:
-                    print('''What's "{0}"?  I'll take rrrum.'''.format(arg))
+                    print('''What's "{0}"?  I'll take rrrum.'''
+                          .format(arg))
                 self.gold -= 1            
         
 quitting: pirate5.py
@@ -172,7 +173,8 @@
 ::
 
     def postcmd(self, stop, line):
-        print('Now we gots {0} doubloons'.format(self.gold))
+        print('Now we gots {0} doubloons'
+              .format(self.gold))
         if self.gold < 0:
             print("Off to debtorrr's prrrison.  Game overrr.")
             return True
@@ -188,4 +190,35 @@
 
     prompt = 'arrr> '
     def default(self, line):
-        print('What mean ye by "{0}"?'.format(line))
\ No newline at end of file
+        print('What mean ye by "{0}"?'
+              .format(line))
+        
+cmd2
+====
+
+Third-party module in PyPI
+
+What you get
+============
+
+    * Abbreviated commands
+    * Script files
+    * Output redirection
+    * Commands at invocation
+    * Python
+    
+    * Searchable command history
+    * Quitting the application
+    * Comments
+    * Misc. pre-defined commands
+    * Transcript-based testing
+More
+====
+
+    * Case-insensitivity
+    * Shortcuts
+    * Default to shell
+    * Timing
+    * Echo
+    * Debug
+    * Other user-settable parameters