Skip to content

Commit

Permalink
Remove url support
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrinkiani committed Nov 22, 2023
1 parent 94f98c3 commit 2de9c86
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions modelscan/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ def format_usage(self, ctx: click.Context, formatter: click.HelpFormatter) -> No
default=None,
help="Path to the file or folder to scan",
)
# @click.option(
# "-u", "--url", type=str, default=None, help="URL to the file or folder to scan"
# )


@click.option(
"-l",
"--log",
Expand All @@ -57,7 +52,6 @@ def format_usage(self, ctx: click.Context, formatter: click.HelpFormatter) -> No
def cli(
ctx: click.Context,
log: str,
# url: Optional[str],
path: Optional[str],
show_skipped: bool,
) -> int:
Expand All @@ -74,8 +68,7 @@ def cli(
raise FileNotFoundError(f"Path {path} does not exist")
else:
modelscan.scan_path(pathlibPath)
# elif url is not None:
# modelscan.scan_url(url)

else:
raise click.UsageError("Command line must include a path")
ConsoleReport.generate(
Expand Down

0 comments on commit 2de9c86

Please sign in to comment.