(cmdLine string)
| 7 | ) |
| 8 | |
| 9 | func CmdFromString(cmdLine string) (*exec.Cmd, error) { |
| 10 | args := strings.Fields(cmdLine) |
| 11 | if len(args) < 1 { |
| 12 | return nil, errors.New("empty input") |
| 13 | } |
| 14 | return exec.Command(args[0], args[1:]...), nil |
| 15 | } |
nothing calls this directly
no outgoing calls
no test coverage detected