1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-25 22:01:14 +02:00
lazygit/pkg/commands/exec_live_win.go

11 lines
467 B
Go
Raw Normal View History

// +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) {
cmdOputput := c.RunCommand(command)
return cmdOputput.Error(), cmdOputput
}