Skip to content
Merged
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
6 changes: 3 additions & 3 deletions cycode/cli/code_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@


@click.command(short_help='Scan the git repository including its history.')
@click.argument('path', nargs=1, type=click.STRING, required=True)
@click.argument('path', nargs=1, type=click.Path(exists=True, resolve_path=True), required=True)
@click.option(
'--branch',
'-b',
Expand Down Expand Up @@ -98,7 +98,7 @@ def scan_repository(context: click.Context, path: str, branch: str) -> None:


@click.command(short_help='Scan all the commits history in this git repository.')
@click.argument('path', nargs=1, type=click.STRING, required=True)
@click.argument('path', nargs=1, type=click.Path(exists=True, resolve_path=True), required=True)
@click.option(
'--commit_range',
'-r',
Expand Down Expand Up @@ -189,7 +189,7 @@ def scan_ci(context: click.Context) -> None:


@click.command(short_help='Scan the files in the path provided in the command.')
@click.argument('path', nargs=1, type=click.STRING, required=True)
@click.argument('path', nargs=1, type=click.Path(exists=True, resolve_path=True), required=True)
@click.pass_context
def scan_path(context: click.Context, path: str) -> None:
progress_bar = context.obj['progress_bar']
Expand Down