cliff/demoapp
Doug Hellmann 6a35ba1b0d Update pyparsing dependency to 2.0.1
Go ahead and require the version of pyparsing that supports
python 2 and 3.

Change-Id: Icdeb7c4a4aeaab9fcc4a44b091a068f91553adf6
2013-09-23 15:45:23 -04:00
..
cliffdemo Fix default encoding issue with python 2.6 2013-08-12 14:45:23 -04:00
README.rst Fix typo. 2013-01-03 21:38:50 -06:00
setup.py Update pyparsing dependency to 2.0.1 2013-09-23 15:45:23 -04:00

README.rst

Running demoapp

Setup

First, you need to create a virtual environment and activate it.

$ pip install virtualenv
$ virtualenv .venv
$ . .venv/bin/activate
(.venv)$ 

Next, install cliff in the environment.

(.venv)$ python setup.py install

Now, install the demo application into the virtual environment.

(.venv)$ cd demoapp
(.venv)$ python setup.py install

Usage

With cliff and the demo setup up, you can now play with it.

To see a list of commands available, run:

(.venv)$ cliffdemo --help

One of the available commands is "simple" and running it

(.venv)$ cliffdemo simple

produces the following

sending greeting
hi!

To see help for an individual command, include the command name on the command line:

(.venv)$ cliffdemo files --help

Cleaning Up

Finally, when done, deactivate your virtual environment:

(.venv)$ deactivate
$