1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-29 22:48:24 +02:00

support custom commands

This commit is contained in:
Jesse Duffield
2019-03-12 21:43:56 +11:00
parent 878a15aff4
commit 55538a3695
7 changed files with 156 additions and 31 deletions

View File

@@ -296,3 +296,8 @@ func (c *OSCommand) GetLazygitPath() string {
}
return filepath.ToSlash(ex)
}
// RunCustomCommand returns the pointer to a custom command
func (c *OSCommand) RunCustomCommand(command string) *exec.Cmd {
return c.PrepareSubProcess(c.Platform.shell, c.Platform.shellArg, command)
}