1212from cycode .cli .utils .get_api_client import get_scan_cycode_client
1313from cycode .cli .utils .sentry import add_breadcrumb
1414
15+ _AUTH_RICH_HELP_PANEL = 'Authentication options'
16+ _SCA_RICH_HELP_PANEL = 'SCA options'
17+
1518
1619def scan_command (
1720 ctx : typer .Context ,
@@ -28,14 +31,14 @@ def scan_command(
2831 Optional [str ],
2932 typer .Option (
3033 help = 'Specify a Cycode client secret for this specific scan execution.' ,
31- rich_help_panel = 'Authentication options' ,
34+ rich_help_panel = _AUTH_RICH_HELP_PANEL ,
3235 ),
3336 ] = None ,
3437 client_id : Annotated [
3538 Optional [str ],
3639 typer .Option (
3740 help = 'Specify a Cycode client ID for this specific scan execution.' ,
38- rich_help_panel = 'Authentication options' ,
41+ rich_help_panel = _AUTH_RICH_HELP_PANEL ,
3942 ),
4043 ] = None ,
4144 show_secret : Annotated [bool , typer .Option ('--show-secret' , help = 'Show Secrets in plain text.' )] = False ,
@@ -65,15 +68,15 @@ def scan_command(
6568 List [ScaScanTypeOption ],
6669 typer .Option (
6770 help = 'Specify the type of SCA scan you wish to execute.' ,
68- rich_help_panel = 'SCA options' ,
71+ rich_help_panel = _SCA_RICH_HELP_PANEL ,
6972 ),
7073 ] = (ScaScanTypeOption .PACKAGE_VULNERABILITIES , ScaScanTypeOption .LICENSE_COMPLIANCE ),
7174 monitor : Annotated [
7275 bool ,
7376 typer .Option (
7477 '--monitor' ,
7578 help = 'When specified, the scan results are recorded in the Discovery module.' ,
76- rich_help_panel = 'SCA options' ,
79+ rich_help_panel = _SCA_RICH_HELP_PANEL ,
7780 ),
7881 ] = False ,
7982 no_restore : Annotated [
@@ -82,7 +85,7 @@ def scan_command(
8285 '--no-restore' ,
8386 help = 'When specified, Cycode will not run restore command. '
8487 'Will scan direct dependencies [bold]only[/bold]!' ,
85- rich_help_panel = 'SCA options' ,
88+ rich_help_panel = _SCA_RICH_HELP_PANEL ,
8689 ),
8790 ] = False ,
8891 gradle_all_sub_projects : Annotated [
@@ -91,7 +94,7 @@ def scan_command(
9194 '--gradle-all-sub-projects' ,
9295 help = 'When specified, Cycode will run gradle restore command for all sub projects. '
9396 'Should run from root project directory [bold]only[/bold]!' ,
94- rich_help_panel = 'SCA options' ,
97+ rich_help_panel = _SCA_RICH_HELP_PANEL ,
9598 ),
9699 ] = False ,
97100) -> None :
0 commit comments