()
| 16 | const { shell } = getShellConfiguration(); |
| 17 | |
| 18 | function getLineCountCommand(): { command: string; tool: string } { |
| 19 | switch (shell) { |
| 20 | case 'powershell': |
| 21 | return { command: `Measure-Object -Line`, tool: 'Measure-Object' }; |
| 22 | case 'cmd': |
| 23 | return { command: `find /c /v`, tool: 'find' }; |
| 24 | case 'bash': |
| 25 | default: |
| 26 | return { command: `wc -l`, tool: 'wc' }; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | function getInvalidCommand(): string { |
| 31 | switch (shell) { |
no outgoing calls
no test coverage detected