(filePath: string)
| 160 | } |
| 161 | |
| 162 | function isExecutableFile(filePath: string): boolean { |
| 163 | try { |
| 164 | fs.accessSync(filePath, fs.constants.X_OK); |
| 165 | return fs.statSync(filePath).isFile(); |
| 166 | } catch { |
| 167 | return false; |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | function sanitizeCacheName(value: string): string { |
| 172 | return value.replaceAll(/[^A-Za-z0-9._-]/g, '-').replaceAll(/^-+|-+$/g, '') || 'swift-helper'; |
no outgoing calls
no test coverage detected