(packageMap: PackageNameMap, distro = detectLinuxDistro())
| 229 | * Uses type-safe indexing based on the LinuxDistroType enum |
| 230 | */ |
| 231 | export function getPackageName(packageMap: PackageNameMap, distro = detectLinuxDistro()): string { |
| 232 | return packageMap[distro.type] ?? packageMap.unknown; |
| 233 | } |
| 234 | |
| 235 | /** |
| 236 | * Builds an install command for packages on the current distribution |
no test coverage detected