(val: string)
| 41 | type CommandArg = [string, string | string[] | number | boolean]; |
| 42 | const execCommand = (command: string, ...args: CommandArg[]) => { |
| 43 | const quote = (val: string) => `"${val}"`; |
| 44 | const formattedArgs = args |
| 45 | .map(([c, a]) => { |
| 46 | // if args is array then quote each elem and separate them with space |