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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12096116e6e61a33266444dc4cb75e27bdd798f8151d534a9335260f1e34abed |
|
MD5 | 033689f4eea2f573c7983e76154f2cd8 |
|
BLAKE2b-256 | 471f07eae9e6a71512875c8bb70f1f5cc9dc2b6eda54bfba62b4875295dfdcbb |