2018-10-27 14:35:07 +02:00
|
|
|
// +build windows
|
|
|
|
|
|
|
|
package commands
|
|
|
|
|
|
|
|
// RunCommandWithOutputLiveWrapper runs a command live but because of windows compatibility this command can't be ran there
|
2018-10-27 14:56:15 +02:00
|
|
|
// TODO: Remove this hack and replace it with a propper way to run commands live on windows
|
2018-10-29 08:23:56 +01:00
|
|
|
func RunCommandWithOutputLiveWrapper(c *OSCommand, command string, output func(string) string) (errorMessage string, codeError error) {
|
2018-11-10 08:43:02 +01:00
|
|
|
cmdOputput := c.RunCommand(command)
|
|
|
|
return cmdOputput.Error(), cmdOputput
|
2018-10-27 14:35:07 +02:00
|
|
|
}
|