Skip to main content

A nested submenu system for cmd2

Project description

# cmd2-submenu This project provides a submenu system for cmd2

## Installing To install the plugin, do: ` $ pip install cmd2-submenu `

## How to use

## Running tests

cmd2 uses a three tiered testing strategy to test on multiple versions of python on various platforms. This plugin uses the same strategy:

### Running unit tests

Run pytest from the top level directory of this plugin to run all the unit tests.

### Use tox to run unit tests in multiple versions of python

The included tox.ini is setup to run the unit tests in python 3.4, 3.5, and 3.6. In order for tox to work, you need to have different versions of python executables available in your path. [pyenv](https://github.com/pyenv/pyenv) is one method of doing this easily. Once pyenv is installed, use it to install multiple versions of python:

` $ pyenv install 3.4.8 $ pyenv install 3.5.5 $ pyenv install 3.6.5 $ pyenv local 3.6.5 3.5.5 3.4.8 `

This will create a .python-version file and instruct the pyenv shims to make python3.6, python3.5, and python3.4 launch the appropriate versions of python.

Once these executables are configured, invoking tox will create a virtual environment for each version of python, install the prerequisite packages, and run your unit tests.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cmd2-submenu, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size cmd2_submenu-0.3.0-py3-none-any.whl (5.5 kB) File type Wheel Python version 3.7 Upload date Hashes View hashes
Filename, size cmd2-submenu-0.3.0.tar.gz (11.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page