HomeSoftware Heritage

cli: add a generic main 'swh' command

Authored by douardda on Apr 19 2019, 10:18 AM.

Description

cli: add a generic main 'swh' command

This allows to declare click-based subcommands using the setuptools'
entry point "swh.cli.subcommands".

The main "swh" command group does only handle the "--log-level" option.

Also extract the db-init command in a dedicated submodule and ensure both

swh db-init

and

swh-db-init

work.

Related to T1671.

Details

Committed
douarddaMay 6 2019, 3:11 PM
Pushed
douarddaMay 6 2019, 3:23 PM
Differential Revision
D1426: cli: add a generic main 'swh' command and extract the db-init command
Parents
rDCORE22e60ae54315: Reorder a few import statements
Branches
Unknown
Tags
Unknown
Build Status
Buildable 5585
Build 7610: test-and-build