changeset 28:dd1cc6630a65

test files
author devlinjs@FA7CZA6N1254998.wrightpatterson.afmc.ds.af.mil
date Thu, 20 Dec 2007 13:48:56 -0500
parents ca6f34be3397
children a6f68b25ae16
files testcmd.py testsongs.txt
diffstat 2 files changed, 29 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testcmd.py	Thu Dec 20 13:48:56 2007 -0500
@@ -0,0 +1,18 @@
+import cmd2
+
+class test(cmd2.Cmd):
+    binarypar = True
+    settable = ['prompt', 'binarypar']
+    def do_sing(self, arg):
+        '''Sings.  
+        
+        Hums if it has to fake it.'''
+        print arg or 'hmm hmm hmm'
+    def do_shout(self, arg):
+        print arg.upper()
+    def do_quit(self, arg):
+        return 1
+    multilineCommands = ['shout']
+
+t = test()
+t.cmdloop()
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testsongs.txt	Thu Dec 20 13:48:56 2007 -0500
@@ -0,0 +1,11 @@
+sing
+shout;
+shout oh my
+darling
+clementine
+;
+shout
+even
+more
+
+sing this song