Changed it to be a function in main.go instead of a method since it
wasn't using anything related to the Builder struct.
Minor tweaks to make code more idiomatic: avoid i for the non-index
variable in range, return an error instead of printing the error and
boolean.
Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
The method (and use of reflect package) is unnecessary when we are
using a literal string as argument.
Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
And also dump the Stderr of the command to os.Stderr. Without a git
failure might not give enough information about what gone wrong,
e.g. when trying to call "git commit" without a user.email configured.
The commit message was changed to include the Clear version from which
the Mix was based off.
Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Starting with swupd-client v3.8.3, the update-ca directory is no longer
created for the build, so the cert copy is failing. Fix the issue by
creating the directory before the copy operation.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
The tools have been converted from many bash scripts into a single binary,
written in Go. This creates a codebase that is much easier to edit and
maintain, and a single tool that provides all the functionality needed. The
interface is more intuitive and easy to use as it provides options and menus
for each subcommand.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>