summaryrefslogtreecommitdiff
path: root/docs/api/history.rst
blob: 5658238de5181e2845aa8e533cde7a2fca386039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cmd2.history
===============

Classes for storing the history of previously entered commands.


.. autoclass:: cmd2.history.History
    :members:


.. autoclass:: cmd2.history.HistoryItem
    :members:

    .. attribute:: statement

      The :class:`~cmd2.Statement` object parsed from user input

    .. attribute:: idx

      The 1-based index of this statement in the history list