https://forge.softwareheritage.org/source/swh-scheduler.git
Revision 61c91b82d5fb12a68ab74af9a35bc58a822c2a92 authored by David Douard on 29 January 2019, 13:11:07 UTC, committed by David Douard on 30 January 2019, 09:49:59 UTC
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),
1 parent 63af874
History
Tip revision: 61c91b82d5fb12a68ab74af9a35bc58a822c2a92 authored by David Douard on 29 January 2019, 13:11:07 UTC
Refactor config handling in cli.py
Tip revision: 61c91b8
File Mode Size
bin
data
debian
docs
sql
swh
.gitignore -rw-r--r-- 102 bytes
AUTHORS -rw-r--r-- 112 bytes
LICENSE -rw-r--r-- 34.3 KB
LICENSE.Celery -rw-r--r-- 2.6 KB
MANIFEST.in -rw-r--r-- 151 bytes
Makefile -rw-r--r-- 163 bytes
README.md -rw-r--r-- 1.3 KB
pytest.ini -rw-r--r-- 54 bytes
requirements-swh.txt -rw-r--r-- 19 bytes
requirements-test.txt -rw-r--r-- 123 bytes
requirements.txt -rw-r--r-- 337 bytes
setup.py -rwxr-xr-x 2.2 KB
tox.ini -rw-r--r-- 309 bytes

README.md

back to top