Mercurial > python-cmd2
comparison example/exampleSession.txt @ 117:33cd0e1bebb8
stripping continuation prompts during testing
author | catherine@dellzilla |
---|---|
date | Tue, 28 Oct 2008 14:05:12 -0400 |
parents | 0820c42ea23e |
children | db366853074c |
comparison
equal
deleted
inserted
replaced
116:06f5eba2f588 | 117:33cd0e1bebb8 |
---|---|
1 This is cut-and-pasted from an interactive example.py session. | 1 (Cmd) orate Four score and |
2 Calling `example.py -t` runs it as a series of unit tests, | 2 > seven releases ago |
3 verifying that the same output is still returned. | 3 > our BDFL |
4 | 4 > blah blah blah |
5 (Cmd) help | 5 > |
6 | 6 > |
7 Documented commands (type help <topic>): | 7 Four score and seven releases ago our BDFL blah blah blah |
8 ======================================== | |
9 _load edit history li load r save set shortcuts speak | |
10 ed hi l list orate run say shell show | |
11 | |
12 Undocumented commands: | |
13 ====================== | |
14 EOF cmdenvironment eof exit help q quit | |
15 | |
16 (Cmd) help say | |
17 Repeats what you tell me to. | |
18 Usage: speak [options] arg | |
19 | |
20 Options: | |
21 -h, --help show this help message and exit | |
22 -p, --piglatin atinLay | |
23 -s, --shout N00B EMULATION MODE | |
24 -r REPEAT, --repeat=REPEAT | |
25 output [n] times | |
26 | |
27 (Cmd) say goodnight, Gracie | |
28 goodnight, Gracie | |
29 (Cmd) say -ps --repeat=5 goodnight, gracie | |
30 OODNIGHT, GRACIEGAY | |
31 OODNIGHT, GRACIEGAY | |
32 OODNIGHT, GRACIEGAY | |
33 (Cmd) set | |
34 prompt: (Cmd) | |
35 editor: gedit | |
36 echo: False | |
37 maxrepeats: 3 | |
38 (Cmd) set maxrepeats 5 | |
39 maxrepeats - was: 3 | |
40 now: 5 | |
41 (Cmd) say -ps --repeat=5 goodnight, gracie | |
42 OODNIGHT, GRACIEGAY | |
43 OODNIGHT, GRACIEGAY | |
44 OODNIGHT, GRACIEGAY | |
45 OODNIGHT, GRACIEGAY | |
46 OODNIGHT, GRACIEGAY | |
47 (Cmd) orate these are the | |
48 > times that | |
49 > try mens' souls | |
50 > | |
51 > | |
52 these are the times that try mens' souls | |
53 (Cmd) & we made a shortcut! | |
54 we made a shortcut! | |
55 (Cmd) history | |
56 -------------------------[1] | |
57 help | |
58 -------------------------[2] | |
59 help say | |
60 -------------------------[3] | |
61 say goodnight, Gracie | |
62 -------------------------[4] | |
63 say -ps --repeat=5 goodnight, gracie | |
64 -------------------------[5] | |
65 set | |
66 -------------------------[6] | |
67 set maxrepeats 5 | |
68 -------------------------[7] | |
69 say -ps --repeat=5 goodnight, gracie | |
70 -------------------------[8] | |
71 orate these are the | |
72 times that | |
73 try mens' souls | |
74 | |
75 | |
76 -------------------------[9] | |
77 & we made a shortcut! | |
78 (Cmd) run 3 | |
79 say goodnight, Gracie | |
80 goodnight, Gracie | |
81 (Cmd) say put this in a file > text.txt | |
82 (Cmd) say < text.txt | |
83 put this in a file | |
84 (Cmd) set prompt "---> " | |
85 prompt - was: (Cmd) | |
86 now: ---> | |
87 ---> say goodbye | |
88 goodbye | |
89 ---> |