Skip to content

Commit 0143b29

Browse files
author
João Silva
committed
!47 bug(parsers): [#84] --api-key not working in subs commands Closes #84 and #85
1 parent ec83e52 commit 0143b29

5 files changed

Lines changed: 8 additions & 3 deletions

File tree

probely/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
ScanStatusEnum,
1313
TargetRiskEnum,
1414
TargetTypeEnum,
15+
TargetAPISchemaTypeEnum,
1516
)
1617
from .sdk.findings import list_findings, retrieve_finding, retrieve_findings
1718
from .sdk.scans import (
@@ -37,6 +38,7 @@
3738
update_target,
3839
update_targets,
3940
)
41+
from .version import __version__
4042

4143
__all__ = [
4244
"Probely",

probely/__main__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .cli import app
2+
3+
app()

probely/cli/commands/findings/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def build_findings_parser(commands_parser, configs_parser, output_parser):
6969

7070
findings_parser = commands_parser.add_parser(
7171
"findings",
72-
parents=[configs_parser],
72+
help="List existing findings",
7373
formatter_class=RichHelpFormatter,
7474
)
7575
findings_parser.set_defaults(

probely/cli/commands/scans/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def build_scan_filters_parser() -> argparse.ArgumentParser:
6060
def build_scans_parser(commands_parser, configs_parser, file_parser, output_parser):
6161
scans_parser = commands_parser.add_parser(
6262
"scans",
63-
parents=[configs_parser],
63+
help="Manage existing scans",
6464
formatter_class=RichHelpFormatter,
6565
)
6666
scans_parser.set_defaults(

probely/cli/commands/targets/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def build_targets_parser(commands_parser, configs_parser, file_parser, output_pa
6868

6969
targets_parser = commands_parser.add_parser(
7070
"targets",
71-
parents=[configs_parser],
71+
help="Create, manage and scan targets",
7272
formatter_class=RichHelpFormatter,
7373
)
7474
targets_parser.set_defaults(

0 commit comments

Comments
 (0)