( startCwd: string, homeDir: string, )
| 1 | import path from 'path' |
| 2 | |
| 3 | export function shouldShowProjectPicker( |
| 4 | startCwd: string, |
| 5 | homeDir: string, |
| 6 | ): boolean { |
| 7 | const relativeToHome = path.relative(startCwd, homeDir) |
| 8 | return ( |
| 9 | relativeToHome === '' || |
| 10 | (!relativeToHome.startsWith('..') && !path.isAbsolute(relativeToHome)) |
| 11 | ) |
| 12 | } |
no outgoing calls
no test coverage detected