Skip to content

Commit c8a9c08

Browse files
author
João Silva
committed
!56 docs(Probely CLI): [#40] Add first iteration docs Closes #40
1 parent a29e505 commit c8a9c08

17 files changed

Lines changed: 240 additions & 190 deletions

docs/cli.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/findings.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Findings
2+
========
3+
4+
.. sphinx-argparse-cli::
5+
:module: probely.cli.parsers.findings_parsers
6+
:func: build_findings_parser
7+
:prog: probely findings
8+
:no_default_values:

docs/index.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
Welcome to Probely's documentation!
22
===================================
33

4-
SDK and CLI
4+
CLI
55

66
.. note::
77

8-
This project is under active development.
8+
This project is under active development.
99

1010
.. toctree::
11-
:maxdepth: 2
12-
:caption: Contents:
11+
:maxdepth: 2
12+
:caption: Contents:
1313

14-
sdk
15-
cli
14+
targets
15+
scans
16+
findings
1617

1718
Indices and tables
1819
==================

docs/scans.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Scans
2+
=====
3+
4+
.. sphinx-argparse-cli::
5+
:module: probely.cli.parsers.scans_parsers
6+
:func: build_scans_parser
7+
:prog: probely scans
8+
:no_default_values:

docs/sdk.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/targets.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Targets
2+
=======
3+
4+
.. sphinx-argparse-cli::
5+
:module: probely.cli.parsers.targets_parsers
6+
:func: build_targets_parser
7+
:prog: probely targets
8+
:no_default_values:

probely/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from rich.console import Console
66

77
from .app import CLIApp
8-
from .commands.parsers import build_cli_parser
8+
from .parsers.base_parser import build_cli_parser
99

1010
logger = logging.getLogger(__name__)
1111

probely/cli/commands/parsers.py

Lines changed: 0 additions & 104 deletions
This file was deleted.

probely/cli/common.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
from probely.exceptions import ProbelyCLIValidation
1313

1414

15-
def show_help(args):
16-
if args.is_no_action_parser:
17-
args.parser.print_help()
18-
19-
2015
def validate_and_retrieve_yaml_content(yaml_file_path: Union[str, None]):
2116
if not yaml_file_path:
2217
return dict()

probely/cli/parsers/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)