parseUnixCommand parses a unix style command line and returns the command and its arguments or an error
(cmd string)
| 60 | // parseUnixCommand parses a unix style command line and returns the |
| 61 | // command and its arguments or an error |
| 62 | func parseUnixCommand(cmd string) ([]string, error) { |
| 63 | return shlex.Split(cmd) |
| 64 | } |
| 65 | |
| 66 | // parseWindowsCommand parses windows command lines and |
| 67 | // returns the command and the arguments as an array. It |
no outgoing calls