( env: Record<string, string | undefined> = process.env, )
| 11 | // (`EXECUTOR_AUTH_TOKEN`). Local servers publish their token in the manifest, so |
| 12 | // the env override is mainly for pointing the CLI at a remote instance. |
| 13 | export const readCliServerAuth = ( |
| 14 | env: Record<string, string | undefined> = process.env, |
| 15 | ): ExecutorServerAuth | undefined => { |
| 16 | const token = env.EXECUTOR_API_KEY ?? env.EXECUTOR_AUTH_TOKEN; |
| 17 | return token ? { kind: "bearer", token } : undefined; |
| 18 | }; |
| 19 | |
| 20 | export const parseCliExecutorServerConnection = ( |
| 21 | baseUrl: string, |
no outgoing calls
no test coverage detected