(profile: RemoteConfigProfile)
| 12 | ) as readonly (keyof RemoteConfigProfile)[]; |
| 13 | |
| 14 | export function profileToCliFlags(profile: RemoteConfigProfile): Partial<CliFlags> { |
| 15 | const flags: Partial<CliFlags> = {}; |
| 16 | for (const key of REMOTE_CONFIG_DEFAULT_FLAG_KEYS) { |
| 17 | const value = profile[key]; |
| 18 | if (value !== undefined) { |
| 19 | (flags as Record<string, unknown>)[key] = value; |
| 20 | } |
| 21 | } |
| 22 | return flags; |
| 23 | } |
| 24 | |
| 25 | export function resolveRemoteConfigDefaults(options: { |
| 26 | remoteConfig?: string; |
no outgoing calls
no test coverage detected