cli: replace the 'vault' cmd with cli group with a 'rpc-serve' subcmd
Closed
requested to merge generated-differential-D1481-source into generated-differential-D1481-target
so that one should use:
swh vault rpc-server
as in other swh packages.
The deprecated swh-vault command should still work as expected.
Also improve config file loading behavior as well as the help for this.
Resulting help msg looks like:
$ swh vault rpc-serve -h
Usage: swh vault rpc-serve [OPTIONS]
Software Heritage Vault RPC server.
If the CONFIGFILE option is not set, the default config file
search will be used; first the SWH_CONFIG_FILENAME environment
variable will be checked, then the config file will be searched
in:
- ~/.config/swh/vault/server(.yml|.ini)
- ~/.swh/vault/server(.yml|.ini)
- /etc/softwareheritage/vault/server(.yml|.ini)
Options:
-C, --config-file CONFIGFILE Configuration file.
--no-stdout Do NOT output logs on the console
--host HOST Host to run the server
--port PORT Binding port of the server
--debug / --no-debug Indicates if the server should run in
debug mode
-h, --help Show this message and exit.
Migrated from D1481 (view on Phabricator)
Merge request reports
Activity
The help msg stuff in cli provides:
$ swh vault rpc-serve -h Usage: swh vault rpc-serve [OPTIONS] Software Heritage Vault RPC server. If the CONFIGFILE option is not set, the default config file search will be used; first the SWH_CONFIG_FILENAME environment variable will be checked, then the config file will be searched in: - ~/.config/swh/vault/server(.yml|.ini) - ~/.swh/vault/server(.yml|.ini) - /etc/softwareheritage/vault/server(.yml|.ini) Options: -C, --config-file CONFIGFILE Configuration file. --no-stdout Do NOT output logs on the console --host HOST Host to run the server --port PORT Binding port of the server --debug / --no-debug Indicates if the server should run in debug mode -h, --help Show this message and exit.
Build is green See https://jenkins.softwareheritage.org/job/DVAU/job/tox/71/ for more details.
Build is green See https://jenkins.softwareheritage.org/job/DVAU/job/tox/72/ for more details.
Build is green See https://jenkins.softwareheritage.org/job/DVAU/job/tox/73/ for more details.
Build is green See https://jenkins.softwareheritage.org/job/DVAU/job/tox/74/ for more details.
Please register or sign in to reply