( shell: string, script?: string )
| 1 | export function getShellCommandAndArgs( |
| 2 | shell: string, |
| 3 | script?: string |
| 4 | ): { command: string; args?: string[] } { |
| 5 | const splits = shell.split(' '); |
| 6 | const command = splits[0]; |
| 7 | const args = [...splits.slice(1)]; |
| 8 | if (script) { |
| 9 | args.push(script); |
| 10 | } |
| 11 | return { |
| 12 | command, |
| 13 | args, |
| 14 | }; |
| 15 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…