MCPcopy Create free account
hub / github.com/Geeoon/asploit / process_command

Method process_command

src/CommandProcessor.py:86–98  ·  view source on GitHub ↗
(self, command: str)

Source from the content-addressed store, hash-verified

84 @throw CommandException if the command doesn't exist.
85 """
86 def process_command(self, command: str):
87 split = command.split(" ", 1)
88 base = split[0]
89
90 options = ""
91 if len(split) > 1:
92 options = split[1]
93
94 if base in self.commands:
95 self.commands[base]["method"](options)
96 else:
97 raise CommandException(
98 f"'{command.split(' ', 1)[0]}' command not found.")

Callers 2

__runMethod · 0.45
main.pyFile · 0.45

Calls 1

CommandExceptionClass · 0.85

Tested by

no test coverage detected