Skip to content

Commit bce9ad9

Browse files
committed
use kebab case instead of snake case for command names
1 parent b5ba1d6 commit bce9ad9

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

cycode/cli/apps/ai_remediation/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
from cycode.cli.apps.ai_remediation.ai_remediation_command import ai_remediation_command
44

55
app = typer.Typer()
6-
app.command(name='ai_remediation', short_help='Get AI remediation (INTERNAL).', hidden=True)(ai_remediation_command)
6+
app.command(name='ai-remediation', short_help='Get AI remediation (INTERNAL).', hidden=True)(ai_remediation_command)
7+
8+
# backward compatibility
9+
app.command(hidden=True, name='ai_remediation')(ai_remediation_command)

cycode/cli/apps/report/sbom/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
app = typer.Typer(name='sbom')
88
app.callback(short_help='Generate SBOM report for remote repository by url or local directory by path.')(sbom_command)
99
app.command(name='path', short_help='Generate SBOM report for provided path in the command.')(path_command)
10-
app.command(name='repository_url', short_help='Generate SBOM report for provided repository URI in the command.')(
10+
app.command(name='repository-url', short_help='Generate SBOM report for provided repository URI in the command.')(
1111
repository_url_command
1212
)
13+
14+
# backward compatibility
15+
app.command(hidden=True, name='repository_url')(repository_url_command)

cycode/cli/apps/scan/__init__.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,22 @@
1616

1717
app.command(name='path', short_help='Scan the files in the paths provided in the command.')(path_command)
1818
app.command(name='repository', short_help='Scan the Git repository included files.')(repository_command)
19-
app.command(name='commit_history', short_help='Scan all the commits history in this git repository.')(
19+
app.command(name='commit-history', short_help='Scan all the commits history in this git repository.')(
2020
commit_history_command
2121
)
22-
2322
app.command(
24-
name='pre_commit',
23+
name='pre-commit',
2524
short_help='Use this command in pre-commit hook to scan any content that was not committed yet.',
2625
rich_help_panel='Automation commands',
2726
)(pre_commit_command)
2827
app.command(
29-
name='pre_receive',
28+
name='pre-receive',
3029
short_help='Use this command in pre-receive hook '
3130
'to scan commits on the server side before pushing them to the repository.',
3231
rich_help_panel='Automation commands',
3332
)(pre_receive_command)
33+
34+
# backward compatibility
35+
app.command(hidden=True, name='commit_history')(commit_history_command)
36+
app.command(hidden=True, name='pre_commit')(pre_commit_command)
37+
app.command(hidden=True, name='pre_receive')(pre_receive_command)

0 commit comments

Comments
 (0)