(self, options: str)
| 98 | @throw CommandException if there are not targets. |
| 99 | """ |
| 100 | def __list(self, options: str): |
| 101 | if len(self.targets) == 0: |
| 102 | raise CommandException("No targets added.") |
| 103 | |
| 104 | print(self.targets[0]["name"]) |
| 105 | print(f"{self.targets[0]['host']}{self.targets[0]['path']}") |
| 106 | print(f"Type: {self.targets[0]['type']}") |
| 107 | print(f"Method: {self.targets[0]['method']}") |
| 108 | print(f"Header: {self.targets[0]['header']}") |
| 109 | for target in self.targets[1:]: |
| 110 | print("-" * 80) |
| 111 | print(target["name"]) |
| 112 | print(f"{target['host']}{target['path']}") |
| 113 | print(f"Type: {target['type']}") |
| 114 | print(f"Method: {target['method']}") |
| 115 | print(f"Header: {target['header']}") |
| 116 | print(f"\nTotal: {len(self.targets)}") |
| 117 | |
| 118 | """ |
| 119 | @brief Remove targets from the list. |
nothing calls this directly
no test coverage detected