(
label: string,
options: { plural?: boolean } = {},
)
| 2 | import { AppError } from '../kernel/errors.ts'; |
| 3 | |
| 4 | export function createUnsupportedArtifactAdapter( |
| 5 | label: string, |
| 6 | options: { plural?: boolean } = {}, |
| 7 | ): ArtifactAdapter { |
| 8 | const verb = options.plural === true ? 'do' : 'does'; |
| 9 | return { |
| 10 | resolveInput: async () => { |
| 11 | throw new AppError('UNSUPPORTED_OPERATION', `${label} ${verb} not resolve input artifacts`); |
| 12 | }, |
| 13 | reserveOutput: async () => { |
| 14 | throw new AppError('UNSUPPORTED_OPERATION', `${label} ${verb} not reserve output artifacts`); |
| 15 | }, |
| 16 | createTempFile: async () => { |
| 17 | throw new AppError('UNSUPPORTED_OPERATION', `${label} ${verb} not create temporary files`); |
| 18 | }, |
| 19 | }; |
| 20 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…