Added release mode flag

fixed logging
logging info level by default
This commit is contained in:
Lea Anthony
2019-01-10 22:48:54 +11:00
parent aaa425724c
commit 49e4f00b62
11 changed files with 78 additions and 31 deletions

View File

@@ -103,6 +103,11 @@ func (p *ProgramHelper) InstallGoPackage(packageName string) error {
// RunCommand runs the given command
func (p *ProgramHelper) RunCommand(command string) error {
args := strings.Split(command, " ")
return p.RunCommandArray(args)
}
// RunCommandArray runs the command specified in the array
func (p *ProgramHelper) RunCommandArray(args []string) error {
program := args[0]
// TODO: Run FindProgram here and get the full path to the exe
program, err := exec.LookPath(program)