Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions cycode/cli/apps/report/sbom/sbom_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ def sbom_command(
include_dev_dependencies: Annotated[
bool, typer.Option('--include-dev-dependencies', help='Include dev dependencies.', show_default=False)
] = False,
maven_settings_file: Annotated[
Optional[Path],
typer.Option(
'--maven-settings-file',
show_default=False,
help='When specified, Cycode will use this settings.xml file when building the maven dependency tree.',
dir_okay=False,
),
] = None,
) -> int:
"""Generate SBOM report."""
sbom_format_parts = sbom_format.split('-')
Expand All @@ -65,5 +74,6 @@ def sbom_command(
)
ctx.obj['report_parameters'] = report_parameters
ctx.obj['output_file'] = output_file
ctx.obj['maven_settings_file'] = maven_settings_file

return 1