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.

Source Distribution

cmd2-submenu-0.2.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

cmd2_submenu-0.2.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file cmd2-submenu-0.2.0.tar.gz.

File metadata

  • Download URL: cmd2-submenu-0.2.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0

File hashes

Hashes for cmd2-submenu-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4630d55f82bd330d410a1fb2624310bebb1b47c41d211264d2fe188ef8ecb608
MD5 687df9c245b014eb1f33d74d80b9d90b
BLAKE2b-256 48d1ae7a6da42822cbffd49342f2951663ebb728864dd61368138983446dec99

See more details on using hashes here.

File details

Details for the file cmd2_submenu-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cmd2_submenu-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0

File hashes

Hashes for cmd2_submenu-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e502fac2ae2117d155d5cd9a6f188db7b1c54d5c7f4698936dd4676c91527ac9
MD5 3566c7e60a5c6aa0e39147c2e63b38ea
BLAKE2b-256 9e6d6b6c280f7c1c612a73f78d303cda99a9b734a2d9b33c16c639d53c34ef55

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page