Mercurial > python-cmd2
comparison example/exampleSession.txt @ 169:429c8e984df4
all working, except \n\n terminators
author | catherine@dellzilla |
---|---|
date | Wed, 10 Dec 2008 14:50:42 -0500 |
parents | 786ab5a83eea |
children | c01f8e612a0a |
comparison
equal
deleted
inserted
replaced
168:786ab5a83eea | 169:429c8e984df4 |
---|---|
1 This is cut-and-pasted from an interactive example.py session. | 1 This is cut-and-pasted from an interactive example.py session. |
2 Calling `example.py -t` runs it as a series of unit tests, | 2 Calling `example.py -t` runs it as a series of unit tests, |
3 verifying that the same output is still returned. | 3 verifying that the same output is still returned. |
4 | 4 |
5 (Cmd) speak the /* hidden comment */ text | |
6 the text | |
7 (Cmd) speak the "unhidden quote" text | |
8 the "unhidden quote" text | |
9 (Cmd) speak "unhidden quote" text | |
10 "unhidden quote" text | |
11 (Cmd) orate "unhidden quote" text; | |
12 "unhidden quote" text | |
13 (Cmd) orate "not ; terminated; just; yet" | |
14 > now I end; | |
15 "not ; terminated; just; yet" | |
16 now I end | |
17 (Cmd) help | 5 (Cmd) help |
18 | 6 |
19 Documented commands (type help <topic>): | 7 Documented commands (type help <topic>): |
20 ======================================== | 8 ======================================== |
21 _load edit history li load r save set shortcuts speak | 9 _load edit history li load r save set shortcuts speak |
103 (Cmd) say < myfile.txt | 91 (Cmd) say < myfile.txt |
104 put this in a file | 92 put this in a file |
105 (Cmd) # comments do nothing | 93 (Cmd) # comments do nothing |
106 (Cmd) /* C-style comments */ say are invisible | 94 (Cmd) /* C-style comments */ say are invisible |
107 are invisible | 95 are invisible |
108 (Cmd) orate and they don't /* interfere; | 96 (Cmd) orate and they do not /* interfere; |
109 > with multiline */ commands; | 97 > with multiline */ commands; |
110 and they don't commands; | 98 and they do not commands |
99 (Cmd) speak the /* hidden comment */ text | |
100 the text | |
101 (Cmd) speak the "unhidden quote" text | |
102 the "unhidden quote" text | |
103 (Cmd) # Quoted strings immediately following the command are NOT included in the arguments - | |
104 (Cmd) # this is due to a bug in pyparsing. See: | |
105 (Cmd) # https://sourceforge.net/tracker/index.php?func=detail&aid=2412233&group_id=97203&atid=617311 | |
111 (Cmd) set prompt "---> " | 106 (Cmd) set prompt "---> " |
112 prompt - was: (Cmd) | 107 prompt - was: (Cmd) |
113 now: ---> | 108 now: ---> |
114 ---> say goodbye | 109 ---> say goodbye |
115 goodbye | 110 goodbye |