mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-12 11:15:00 +02:00
18bcc0df4d
when executing a command live on windows it detects errors but did just show a empty string
11 lines
467 B
Go
11 lines
467 B
Go
// +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
|
|
}
|