HomeSoftware Heritage

Refactor config handling in cli.py

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Refactor config handling in cli.py

Move the config file loading in the main cli group so that every
command in this group have a consistent config loading behavior.

This means that some cli commands "signatures" have changed:

  • every command now accepts a -C/--config-file option
  • the --cls has been dropped: either you give a config file, or passing a --database or --url option determine the 'class' of backend to use,
  • the api-server command 'config-path' argument has been dropped (use --config-file instead),

Details

Provenance
douarddaAuthored on Jan 29 2019, 2:11 PM
douarddaPushed on Jan 30 2019, 11:54 AM
Differential Revision
D1026: Refactor config handling in cli.py
Build Status
Buildable 3852
Build 5044: test-and-build

Commit No Longer Exists

This commit no longer exists in the repository.