Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upall calls to exec.Command should go through the cmd package #3441
Comments
|
This should also deal with the code duplication around handling exit failures. A basic function to wrap exec.Command, and then another wrapper around that with zero/non-zero exit codes. The second wrapper should take a testing.T argument to log / report failures. It should log both the command that ran and its output. |
|
@mem implemented a command tool at |


We have a lot of calls to
exec.Commandthat would be better done with a single wrapper around that functionality. A single location that calls exec.Command could help increase both traceability and debugging.I would like to suggest the
cmdpackage I added in myhelp testPR.