Mercurial > python-cmd2
comparison docs/index.rst @ 364:29221236d1a1
updating refresh scripts
author | cat@eee |
---|---|
date | Thu, 18 Feb 2010 14:04:10 -0500 |
parents | 5b95dacca46e |
children | 40cba30b6125 |
comparison
equal
deleted
inserted
replaced
363:2b2836b783be | 364:29221236d1a1 |
---|---|
7 ==== | 7 ==== |
8 | 8 |
9 A python package for building powerful command-line interpreter (CLI) | 9 A python package for building powerful command-line interpreter (CLI) |
10 programs. Extends the Python Standard Library's cmd_ package. | 10 programs. Extends the Python Standard Library's cmd_ package. |
11 | 11 |
12 | |
13 .. _`cmd2 project page`: http://www.assembla.com/wiki/show/python-cmd2 | |
14 .. _`project bug tracker`: http://trac-hg.assembla.com/python-cmd2/report/1 | |
15 | |
12 .. _cmd: http://docs.python.org/library/cmd.html#module-cmd | 16 .. _cmd: http://docs.python.org/library/cmd.html#module-cmd |
13 | 17 |
14 `cmd2 project page`_: http://docs.python.org/library/cmd.html#module-cmd | 18 .. _`PyCon 2010 presentation`: http://catherinedevlin.pythoneers.com/presentations/cmd_cmd2/pycon2010.html |
15 | |
16 `project bug tracker`_ | |
17 | |
18 .. _`cmd2 Project page`: http://www.assembla.com/wiki/show/python-cmd2 | |
19 .. _`project bug tracker`: http://trac-hg.assembla.com/python-cmd2/report/1 | |
20 | 19 |
21 The basic use of ``cmd2`` is identical to that of cmd_. | 20 The basic use of ``cmd2`` is identical to that of cmd_. |
22 | 21 |
23 1. Create a subclass of ``cmd2.Cmd``. Define attributes and | 22 1. Create a subclass of ``cmd2.Cmd``. Define attributes and |
24 ``do_*`` methods to control its behavior. Throughout this documentation, | 23 ``do_*`` methods to control its behavior. Throughout this documentation, |
30 | 29 |
31 2. Instantiate ``App`` and start the command loop:: | 30 2. Instantiate ``App`` and start the command loop:: |
32 | 31 |
33 app = App() | 32 app = App() |
34 app.cmdloop() | 33 app.cmdloop() |
34 | |
35 Resources | |
36 --------- | |
37 | |
38 * cmd_ | |
39 * `project bug tracker`_ | |
40 * `cmd2 project page`_ | |
41 * `PyCon 2010 presentation`: Easy Command-Line Applications with cmd and cmd2 | |
35 | 42 |
36 These docs will refer to ``App`` as your ``cmd2.Cmd`` | 43 These docs will refer to ``App`` as your ``cmd2.Cmd`` |
37 subclass, and ``app`` as an instance of ``App``. Of | 44 subclass, and ``app`` as an instance of ``App``. Of |
38 course, in your program, you may name them whatever | 45 course, in your program, you may name them whatever |
39 you want. | 46 you want. |