executeCommand is a simple wrapper to exec.Cmd
(options *compileopts.Options, name string, arg ...string)
| 115 | |
| 116 | // executeCommand is a simple wrapper to exec.Cmd |
| 117 | func executeCommand(options *compileopts.Options, name string, arg ...string) *exec.Cmd { |
| 118 | if options.PrintCommands != nil { |
| 119 | options.PrintCommands(name, arg...) |
| 120 | } |
| 121 | return exec.Command(name, arg...) |
| 122 | } |
| 123 | |
| 124 | // printCommand prints a command to stdout while formatting it like a real |
| 125 | // command (escaping characters etc). The resulting command should be easy to |
no outgoing calls
no test coverage detected