()
| 28 | } |
| 29 | |
| 30 | function getInvalidCommand(): string { |
| 31 | switch (shell) { |
| 32 | case 'powershell': |
| 33 | return `Get-ChildItem | | Select-Object`; |
| 34 | case 'cmd': |
| 35 | return `dir | | findstr foo`; |
| 36 | case 'bash': |
| 37 | default: |
| 38 | return `echo "hello" > > file`; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | function getAllowedListCommand(): string { |
| 43 | switch (shell) { |
no outgoing calls
no test coverage detected