Duplicate the selected host.
(self, original_host: SSHHost = None)
| 222 | self.select_host(new_host) |
| 223 | |
| 224 | def duplicate_host(self, original_host: SSHHost = None): |
| 225 | """Duplicate the selected host.""" |
| 226 | if original_host is None: |
| 227 | original_host = self._get_selected_host() |
| 228 | if original_host is not None: |
| 229 | duplicated_host = self._duplicate_host(original_host) |
| 230 | |
| 231 | self.emit("host-added", duplicated_host) |
| 232 | |
| 233 | self.filter_hosts(self.current_filter) |
| 234 | |
| 235 | self.select_host(duplicated_host) |
| 236 | |
| 237 | def delete_host(self, host_to_delete: SSHHost = None): |
| 238 | """Delete the selected host.""" |
no test coverage detected