314
|
1 .. cmd2 documentation master file, created by
|
|
2 sphinx-quickstart on Wed Feb 10 12:05:28 2010.
|
|
3 You can adapt this file completely to your liking, but it should at least
|
|
4 contain the root `toctree` directive.
|
|
5
|
|
6 Welcome to cmd2's documentation!
|
|
7 ================================
|
|
8
|
324
|
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
|
314
|
24 Contents:
|
|
25
|
|
26 .. toctree::
|
|
27 :maxdepth: 2
|
|
28
|
|
29 overview
|
|
30 example
|
|
31 freefeatures
|
315
|
32 settingchanges
|
|
33 unfreefeatures
|
314
|
34
|
|
35 Indices and tables
|
|
36 ==================
|
|
37
|
|
38 * :ref:`genindex`
|
|
39 * :ref:`modindex`
|
|
40 * :ref:`search`
|
|
41
|