( assets: Record<string, string> | undefined | null, quote: (value: unknown) => string, )
| 47 | } |
| 48 | |
| 49 | export function buildShellArchCase( |
| 50 | assets: Record<string, string> | undefined | null, |
| 51 | quote: (value: unknown) => string, |
| 52 | ): string { |
| 53 | return getArchitectureMatchers(assets) |
| 54 | .map( |
| 55 | ({ aliases, asset }) => |
| 56 | `\t${aliases.join("|")}) ASSET=${quote(asset)} ;;`, |
| 57 | ) |
| 58 | .join("\n"); |
| 59 | } |
no test coverage detected