view docs/freefeatures.rst @ 315:a08c50b7d3d3

doc skeleton
author cat@eee
date Wed, 10 Feb 2010 18:02:55 -0500
parents 0687bb650118
children 21584174d865
line wrap: on
line source

===================================
Features requiring no modifications
===================================

These features are provided "for free" to a cmd_-based application
simply by replacing ``import cmd`` with ``import cmd2 as cmd``.

Script files
============

Commands can be loaded from, run from, and saved to text files.

.. automethod:: cmd2.Cmd.do_load

Output redirection
==================

Commands at start
=================

Python
======

Searchable command history
==========================

All cmd_-based applications have access to previous commands with 
the up- and down- cursor keys.

All cmd_-based applications on systems with the ``readline`` module
also provide `bash-like history list editing`_.

.. _`bash-like history list editing`: http://www.talug.org/events/20030709/cmdline_history.html

``cmd2`` makes a third type of history access available, consisting of these commands:

.. automethod:: cmd2.Cmd.do_history

Transcript-based testing
========================