"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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file craft-cli-1.2.0.tar.gz
.
File metadata
- Download URL: craft-cli-1.2.0.tar.gz
- Upload date:
- Size: 28.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb71127ccbc9da0a37e4d08824d44a14079935d94a8382dd158a0250ec125795 |
|
MD5 | 8039691d9ad0734bd5d4bc8eef052070 |
|
BLAKE2b-256 | 2779084746d656a483b8a58aca7e9d8db536208018ce0860d04c8a53f5b2c969 |
File details
Details for the file craft_cli-1.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: craft_cli-1.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84f41aa78826157870a280932b92b471c0b5be3910448c39f25cfb20cc369ad9 |
|
MD5 | 473ac47091df287d685ce97ccbc6ff6b |
|
BLAKE2b-256 | bdf2fdbc6924853ba975218e167fb763ebb16b5be3f2a30912957320492faf8a |