get the provided choice and return a tuple of options and the choice
(self)
| 119 | print("{}{}{}{}".format(spacer1, i, spacer2, item)) |
| 120 | |
| 121 | def get_choice(self): |
| 122 | """ |
| 123 | get the provided choice and return a tuple of options and the choice |
| 124 | """ |
| 125 | original_choice = raw_input(lib.settings.AUTOSPLOIT_PROMPT) |
| 126 | try: |
| 127 | choice_checker = original_choice.split(" ")[0] |
| 128 | except: |
| 129 | choice_checker = original_choice |
| 130 | if choice_checker in self.internal_terminal_commands: |
| 131 | retval = ("internal", original_choice) |
| 132 | elif choice_checker in self.external_terminal_commands: |
| 133 | retval = ("external", original_choice) |
| 134 | else: |
| 135 | retval = ("unknown", original_choice) |
| 136 | return retval |
| 137 | |
| 138 | def do_show_version_number(self): |
| 139 | """ |
no outgoing calls
no test coverage detected