(root: string, maxDepth: number)
| 19 | } |
| 20 | |
| 21 | function buildFindProjectsCommand(root: string, maxDepth: number): string[] { |
| 22 | return [ |
| 23 | 'find', |
| 24 | root, |
| 25 | '-maxdepth', |
| 26 | String(maxDepth), |
| 27 | '(', |
| 28 | '-name', |
| 29 | '*.xcworkspace', |
| 30 | '-o', |
| 31 | '-name', |
| 32 | '*.xcodeproj', |
| 33 | ')', |
| 34 | '-type', |
| 35 | 'd', |
| 36 | ]; |
| 37 | } |
| 38 | |
| 39 | function isPathWithinBoundary(path: string, boundary: string): boolean { |
| 40 | return path === boundary || path.startsWith(`${boundary}${sep}`); |
no outgoing calls
no test coverage detected