(type: PaneBackendType)
| 293 | * @throws If the requested backend type is not available |
| 294 | */ |
| 295 | export function getBackendByType(type: PaneBackendType): PaneBackend { |
| 296 | switch (type) { |
| 297 | case 'tmux': |
| 298 | return createTmuxBackend() |
| 299 | case 'iterm2': |
| 300 | return createITermBackend() |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | /** |
| 305 | * Gets the currently cached backend, if any. |
no test coverage detected