cliff/demoapp
Stephen Finucane 13424d1214 Fix pre-commit issues
Mostly trailing spaces.

Change-Id: I3cde0f4bc51bdeb3e82859a131f866728234c9ad
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2023-09-05 10:17:38 +01:00
..
cliffdemo Remove unicode from code 2021-01-28 17:00:45 +00:00
README.rst Fix pre-commit issues 2023-09-05 10:17:38 +01:00
setup.py trivial: Remove references to Python 2.7 2020-11-18 18:06:04 +00: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
$