A base CLI entrypoint supporting Anaconda CLI plugins
Project description
anaconda-cli-base
A base CLI entrypoint supporting Anaconda CLI plugins
Registering plugins
Subcommands can be registered as follows:
# In pyproject.toml
[project.entry-points."anaconda_cli.subcommand"]
auth = "anaconda_cloud_auth.cli:app"
In the example above:
"anaconda_cloud_cli.subcommand"
is the required string to use for registration. The quotes are important.auth
is the name of the new subcommand, i.e.anaconda auth
anaconda_cloud_auth.cli:app
signifies the object namedapp
in theanaconda_cloud_auth.cli
module is the entry point for the subcommand.
Setup for development
Ensure you have conda
installed.
Then run:
make setup
Run the unit tests
make test
Run the unit tests across isolated environments with tox
make tox
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
Close
Hashes for anaconda_cli_base-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e9204a0d4765a2c4e326df0a166d039f60931250a7bc62765cfbff531f0e302 |
|
MD5 | 292efc6b732342233005d976521e3623 |
|
BLAKE2b-256 | bbbea43fecfcfa446436ebb3b84031d387b69d5794c73840fe3747f876a46e15 |