Changeset View
Changeset View
Standalone View
Standalone View
swh/provenance/cli.py
Show All 22 Lines | |||||
DEFAULT_CONFIG: Dict[str, Any] = { | DEFAULT_CONFIG: Dict[str, Any] = { | ||||
"archive": { | "archive": { | ||||
"cls": "api", | "cls": "api", | ||||
"storage": { | "storage": { | ||||
"cls": "remote", | "cls": "remote", | ||||
"url": "http://uffizi.internal.softwareheritage.org:5002", | "url": "http://uffizi.internal.softwareheritage.org:5002", | ||||
} | } | ||||
# "cls": "ps", | # "cls": "local", | ||||
# "db": { | # "db": { | ||||
# "host": "db.internal.softwareheritage.org", | # "host": "db.internal.softwareheritage.org", | ||||
# "dbname": "softwareheritage", | # "dbname": "softwareheritage", | ||||
# "user": "guest" | # "user": "guest" | ||||
# } | # } | ||||
}, | }, | ||||
"provenance": {"cls": "ps", "db": {"host": "localhost", "dbname": "provenance"}}, | "provenance": {"cls": "local", "db": {"host": "localhost", "dbname": "provenance"}}, | ||||
} | } | ||||
CONFIG_FILE_HELP = f"""Configuration file: | CONFIG_FILE_HELP = f"""Configuration file: | ||||
\b | \b | ||||
The CLI option or the environment variable will fail if invalid. | The CLI option or the environment variable will fail if invalid. | ||||
CLI option is checked first. | CLI option is checked first. | ||||
▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines |