Update helper.py

This commit is contained in:
Richard Mwewa
2022-11-21 18:26:31 +02:00
committed by GitHub
parent 8e4520b6d2
commit 09fffdf192

View File

@@ -153,22 +153,27 @@ class Help:
def helpCommand():
help_cmd_table = Table(show_header=True, header_style=header_title)
help_cmd_table.add_column("Command", style="dim")
help_cmd_table.add_column("Description")
help_cmd_table.add_row("help", "Help menu")
help_cmd_table.add_row("exit", "Close session")
help_cmd_table.add_row("clear", "Clear screen")
help_cmd_table.add_row("about", "Program's info")
help_cmd_table.add_row("author", "Developer's info")
help_cmd_table.add_row("csv", "List all csv management commands")
help_cmd_table.add_row("logs", "List all logs management commands")
help_cmd_table.add_row("org", "List all organization investigation commands")
help_cmd_table.add_row("user", "List all users investigation commands")
help_cmd_table.add_row("repo", "List all repository investigation commands")
help_cmd_table.add_row("search", "List all target discovery commands")
help_cmd_table.add_row("source", "List all source code download commands (for developers)")
core_cmd_table = Table(show_header=True, header_style=header_title)
core_cmd_table.add_column("Command", style="dim", width=12)
core_cmd_table.add_column("Description")
core_cmd_table.add_row("help", "Help menu")
core_cmd_table.add_row("exit", "Close session")
core_cmd_table.add_row("clear", "Clear screen")
core_cmd_table.add_row("about", "Program's info")
core_cmd_table.add_row("author", "Developer's info")
help_sub_cmd_table = Table(show_header=True, header_style=header_title)
help_sub_cmd_table.add_column("Command", style="dim", width=12)
help_sub_cmd_table.add_column("Description")
help_sub_cmd_table.add_row("csv", "List all csv management commands")
help_sub_cmd_table.add_row("logs", "List all logs management commands")
help_sub_cmd_table.add_row("org", "List all organization investigation commands")
help_sub_cmd_table.add_row("user", "List all users investigation commands")
help_sub_cmd_table.add_row("repo", "List all repository investigation commands")
help_sub_cmd_table.add_row("search", "List all target discovery commands")
help_sub_cmd_table.add_row("source", "List all source code download commands (for developers)")
syntax = f"{green}help:<command>{reset}"
xprint(f"{Help.usageText.format(syntax, 'octosuite')}")
xprint(help_cmd_table)
xprint(core_cmd_table)
xprint(f"\n\n{Help.usageText.format(syntax, 'octosuite')}")
xprint(help_sub_cmd_table)