cli: add a new 'backend' cli group to list and document backends
Adds a new 'backend' cli group with a 'list' command. Example: $ swh backend list vault memory Stub vault backend, for use in the CLI. postgresql Backend for the Software Heritage Vault. remote Client to the Software Heritage vault cache. $ swh backend list vault memory vault:memory Stub vault backend, for use in the CLI.
Showing
- pyproject.toml 1 addition, 0 deletionspyproject.toml
- swh/core/cli/backend.py 123 additions, 0 deletionsswh/core/cli/backend.py
- swh/core/config.py 7 additions, 0 deletionsswh/core/config.py
- swh/core/pytest_plugin.py 1 addition, 1 deletionswh/core/pytest_plugin.py
- swh/core/tests/data/test/__init__.py 0 additions, 0 deletionsswh/core/tests/data/test/__init__.py
- swh/core/tests/data/test/__toto__/.placeholder 0 additions, 0 deletionsswh/core/tests/data/test/__toto__/.placeholder
- swh/core/tests/data/test/backend1/__init__.py 0 additions, 0 deletionsswh/core/tests/data/test/backend1/__init__.py
- swh/core/tests/test_cli_backend.py 56 additions, 0 deletionsswh/core/tests/test_cli_backend.py
Loading
Please register or sign in to comment