Fix accidentially pushed folder structure

This commit is contained in:
Florian Frank committed 2026-09-19 11:10:01 +02:00
1 parent 06593ac488
commit a154dc927e
7 files changed
+284 -2

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
"""Entrypoint for the report generator CLI."""
from cc_common.api.cli import CLIManager
from cc_common.config import load_environment
from persistent_storage.shared import inject_secrets
from .commands.generate import GenerateProperties, generate
def run() -> None:
"""Entrypoint for CLI."""
load_environment()
cli = CLIManager("report_generator", "Generates the PDF report of a stored scan.")
cli.register_command(
"generate",
_with_storage_secrets,
GenerateProperties,
help="Builds the PDF report of one scan from the artifacts it stored.",
)
cli.run()
def _with_storage_secrets(properties: GenerateProperties) -> object:
"""Fill the storage configuration's secrets from the environment before the command runs."""
inject_secrets(properties.storage_config)
return generate(properties)
if __name__ == "__main__":
run()