Mercurial > python-cmd2
comparison docs/index.rst @ 324:21584174d865
make SHOW TABLES work
author | catherine@dellzilla |
---|---|
date | Thu, 11 Feb 2010 16:07:24 -0500 |
parents | a08c50b7d3d3 |
children | 49bea7cab179 |
comparison
equal
deleted
inserted
replaced
323:fc1e5a141920 | 324:21584174d865 |
---|---|
4 contain the root `toctree` directive. | 4 contain the root `toctree` directive. |
5 | 5 |
6 Welcome to cmd2's documentation! | 6 Welcome to cmd2's documentation! |
7 ================================ | 7 ================================ |
8 | 8 |
9 The basic use of ``cmd2`` is identical to that of cmd_. | |
10 | |
11 1. Create a subclass of ``cmd2.Cmd``. Define attributes and | |
12 ``do_*`` methods to control its behavior. Throughout this documentation, | |
13 we will assume that you are naming your subclass ``App``:: | |
14 | |
15 from cmd2 import Cmd | |
16 class App(Cmd): | |
17 # customized attributes and methods here | |
18 | |
19 2. Instantiate ``App`` and start the command loop:: | |
20 | |
21 app = App() | |
22 app.cmdloop() | |
23 | |
9 Contents: | 24 Contents: |
10 | 25 |
11 .. toctree:: | 26 .. toctree:: |
12 :maxdepth: 2 | 27 :maxdepth: 2 |
13 | 28 |