(config: SubstitutedConfig<T>, substitute: SubstituteConfig)
| 161 | export type SubstituteConfig = <U extends DevContainerConfig | ImageMetadataEntry>(value: U) => U; |
| 162 | |
| 163 | export function addSubstitution<T extends DevContainerConfig | ImageMetadataEntry[]>(config: SubstitutedConfig<T>, substitute: SubstituteConfig): SubstitutedConfig<T> { |
| 164 | const substitute0 = config.substitute; |
| 165 | const subsConfig = config.config; |
| 166 | return { |
| 167 | config: (Array.isArray(subsConfig) ? subsConfig.map(substitute) : substitute(subsConfig)) as T, |
| 168 | raw: config.raw, |
| 169 | substitute: value => substitute(substitute0(value)), |
| 170 | }; |
| 171 | } |
| 172 | |
| 173 | export async function startEventSeen(params: DockerResolverParameters, labels: Record<string, string>, canceled: Promise<void>, output: Log, trace: boolean) { |
| 174 | if (params.cliVariant === CLIVariant.Wslc) { |
no test coverage detected