Skip to content

Commit 93b1717

Browse files
author
Yasen Trahnov
committed
styling
1 parent 95f8882 commit 93b1717

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pulpcore/cli/console/vulnerability.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import IO, Any, Optional
1+
from typing import IO
22

33
import click
44
from pulp_glue.common.context import PulpContext
@@ -26,11 +26,6 @@ def vulnerability(ctx: click.Context, pulp_ctx: PulpContext, /) -> None:
2626

2727
lookup_options = [href_option]
2828

29-
# Add commands to the vulnerability group
30-
vulnerability.add_command(list_command())
31-
vulnerability.add_command(show_command(decorators=lookup_options))
32-
vulnerability.add_command(upload())
33-
3429
@vulnerability.command()
3530
@click.option(
3631
"--file", type=click.File("rb"), required=True, help="JSON file containing npm packages"
@@ -49,3 +44,8 @@ def upload(
4944
assert isinstance(vulnerability_ctx, PulpVulnerabilityReportContext)
5045
result = vulnerability_ctx.upload(file, chunk_size)
5146
pulp_ctx.output_result(result)
47+
48+
# Add commands to the vulnerability group
49+
vulnerability.add_command(list_command())
50+
vulnerability.add_command(show_command(decorators=lookup_options))
51+
vulnerability.add_command(upload)

0 commit comments

Comments
 (0)