Skip to main content

"Command Line Interface"

Project description

Craft CLI

A Command Line Client builder that follows the Canonical's Guidelines for a Command Line Interface.

The library provides two main functionalities:

  • a framework to define and execute application commands, which involves argument parsing and the provision of help texts

  • infrastructure to handle the terminal and present all the outputs for the different application needs

Documentation

The documentation is available on Read The Docs.

Setting up the environment

Install at system level:

sudo snap install pyright

Create a virtual environment, activate it, and install developer dependencies:

python3 -m venv env
source env/bin/activate
pip install .[dev]

That's all.

Contributing

A Makefile is provided for easy interaction with the project. To see all available options run:

make help

Running tests

To run all tests in the suite run:

make tests

Verifying documentation changes

To locally verify documentation changes run:

make docs

After running, newly generated documentation shall be available at ./docs/_build/html/.

License

Free software: GNU Lesser General Public License v3

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

craft-cli-0.3.0.tar.gz (23.5 kB view hashes)

Uploaded Source

Built Distribution

craft_cli-0.3.0-py2.py3-none-any.whl (25.1 kB view hashes)

Uploaded Python 2 Python 3

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