blob: d972742792d1aeb78e17d5d9fec8a1778b999131 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// +build windows
package commands
// RunCommandWithOutputLiveWrapper runs a command live but because of windows compatibility this command can't be ran there
// TODO: Remove this hack and replace it with a propper way to run commands live on windows
func RunCommandWithOutputLiveWrapper(c *OSCommand, command string, output func(string) string) (errorMessage string, codeError error) {
cmdOputput := c.RunCommand(command)
return cmdOputput.Error(), cmdOputput
}
|