Skip to content

Commit 041ffa2

Browse files
committed
migrate sub-sbom commands
1 parent 1e12009 commit 041ffa2

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

cycode/cli/commands/report/sbom/path/__init__.py

Whitespace-only changes.

cycode/cli/commands/report/sbom/sbom_path_command.py renamed to cycode/cli/commands/report/sbom/path/path_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@click.command(short_help='Generate SBOM report for provided path in the command.')
1616
@click.argument('path', nargs=1, type=click.Path(exists=True, resolve_path=True), required=True)
1717
@click.pass_context
18-
def sbom_path_command(context: click.Context, path: str) -> None:
18+
def path_command(context: click.Context, path: str) -> None:
1919
client = get_report_cycode_client()
2020
report_parameters = context.obj['report_parameters']
2121
output_format = report_parameters.output_format

cycode/cli/commands/report/sbom/repository_url/__init__.py

Whitespace-only changes.

cycode/cli/commands/report/sbom/sbom_repository_url_command.py renamed to cycode/cli/commands/report/sbom/repository_url/repository_url_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@click.command(short_help='Generate SBOM report for provided repository URI in the command.')
1212
@click.argument('uri', nargs=1, type=str, required=True)
1313
@click.pass_context
14-
def sbom_repository_url_command(context: click.Context, uri: str) -> None:
14+
def repository_url_command(context: click.Context, uri: str) -> None:
1515
progress_bar = context.obj['progress_bar']
1616
progress_bar.start()
1717
progress_bar.set_section_length(SbomReportProgressBarSection.PREPARE_LOCAL_FILES)

cycode/cli/commands/report/sbom/sbom_command.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33

44
import click
55

6-
from cycode.cli.commands.report.sbom.sbom_path_command import sbom_path_command
7-
from cycode.cli.commands.report.sbom.sbom_repository_url_command import sbom_repository_url_command
6+
from cycode.cli.commands.report.sbom.path.path_command import path_command
7+
from cycode.cli.commands.report.sbom.repository_url.repository_url_command import repository_url_command
88
from cycode.cli.config import config
99
from cycode.cyclient.report_client import ReportParameters
1010

1111

1212
@click.group(
1313
commands={
14-
'path': sbom_path_command,
15-
'repository_url': sbom_repository_url_command,
14+
'path': path_command,
15+
'repository_url': repository_url_command,
1616
},
1717
short_help='Generate SBOM report for remote repository by url or local directory by path.',
1818
)

0 commit comments

Comments
 (0)