Mercurial > python-cmd2
comparison example/exampleSession.txt @ 115:0820c42ea23e
new README
author | catherine@Elli.myhome.westell.com |
---|---|
date | Sat, 25 Oct 2008 20:47:53 -0400 |
parents | 7d215852f9a6 |
children | 33cd0e1bebb8 |
comparison
equal
deleted
inserted
replaced
114:f509d8b462b3 | 115:0820c42ea23e |
---|---|
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) say goodnight, Gracie | 5 (Cmd) help |
6 goodnight, Gracie | 6 |
7 (Cmd) say -p goodnight, Gracie | 7 Documented commands (type help <topic>): |
8 oodnight, Graciegay | 8 ======================================== |
9 (Cmd) say -h | 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. | |
10 Usage: speak [options] arg | 18 Usage: speak [options] arg |
11 | 19 |
12 Options: | 20 Options: |
13 -h, --help show this help message and exit | 21 -h, --help show this help message and exit |
14 -p, --piglatin atinLay | 22 -p, --piglatin atinLay |
15 -s, --shout N00B EMULATION MODE | 23 -s, --shout N00B EMULATION MODE |
16 -r REPEAT, --repeat=REPEAT | 24 -r REPEAT, --repeat=REPEAT |
17 output [n] times | 25 output [n] times |
18 (Cmd) say --shout goodnight, Gracie | 26 |
19 GOODNIGHT, GRACIE | 27 (Cmd) say goodnight, Gracie |
20 (Cmd) set prompt 'example >>> ' | 28 goodnight, Gracie |
21 prompt - was: (Cmd) | 29 (Cmd) say -ps --repeat=5 goodnight, gracie |
22 now: example >>> | 30 OODNIGHT, GRACIEGAY |
23 example >>> say --repeat 5 spam | 31 OODNIGHT, GRACIEGAY |
24 spam | 32 OODNIGHT, GRACIEGAY |
25 spam | 33 (Cmd) set |
26 spam | 34 prompt: (Cmd) |
27 example >>> set | |
28 prompt: example >>> | |
29 editor: gedit | 35 editor: gedit |
30 echo: False | 36 echo: False |
31 maxrepeats: 3 | 37 maxrepeats: 3 |
32 example >>> set maxrepeats 10 | 38 (Cmd) set maxrepeats 5 |
33 maxrepeats - was: 3 | 39 maxrepeats - was: 3 |
34 now: 10 | 40 now: 5 |
35 example >>> say --repeat 5 spam | 41 (Cmd) say -ps --repeat=5 goodnight, gracie |
36 spam | 42 OODNIGHT, GRACIEGAY |
37 spam | 43 OODNIGHT, GRACIEGAY |
38 spam | 44 OODNIGHT, GRACIEGAY |
39 spam | 45 OODNIGHT, GRACIEGAY |
40 spam | 46 OODNIGHT, GRACIEGAY |
41 example >>> | 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 ---> |