109
|
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,
|
|
3 verifying that the same output is still returned.
|
|
4
|
115
|
5 (Cmd) help
|
|
6
|
|
7 Documented commands (type help <topic>):
|
|
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.
|
106
|
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
|
115
|
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)
|
106
|
35 editor: gedit
|
|
36 echo: False
|
|
37 maxrepeats: 3
|
115
|
38 (Cmd) set maxrepeats 5
|
106
|
39 maxrepeats - was: 3
|
115
|
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 --->
|