()
| 105 | ) |
| 106 | |
| 107 | func shellAccess() shellAccessKind { |
| 108 | // Check if running in devbox cloud |
| 109 | if envir.IsDevboxCloud() { |
| 110 | // Check if running via ssh tty (i.e. ssh shell) |
| 111 | if os.Getenv(envir.SSHTTY) != "" { |
| 112 | return ssh |
| 113 | } |
| 114 | return browser |
| 115 | } |
| 116 | return local |
| 117 | } |
no test coverage detected