( connection: ExecutorServerConnection, env: Record<string, string | undefined> = process.env, )
| 31 | }; |
| 32 | |
| 33 | export const withCliServerAuthFallback = ( |
| 34 | connection: ExecutorServerConnection, |
| 35 | env: Record<string, string | undefined> = process.env, |
| 36 | ): ExecutorServerConnection => |
| 37 | connection.auth |
| 38 | ? connection |
| 39 | : normalizeExecutorServerConnection({ |
| 40 | ...connection, |
| 41 | auth: readCliServerAuth(env), |
| 42 | }); |
| 43 | |
| 44 | export const canAutoStartCliServerConnection = (connection: ExecutorServerConnection): boolean => { |
| 45 | if (connection.kind !== "http") return false; |
no test coverage detected