diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-03-12 21:43:56 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-04-07 17:15:01 +1000 |
commit | 55538a36959739e07c4f1146571e27093f2b45a0 (patch) | |
tree | 811cafcbd534657fea823d16a15152abe410cb0b /pkg/commands | |
parent | 878a15aff40639eb69cca19876da74a1ae8bbcc4 (diff) |
support custom commands
Diffstat (limited to 'pkg/commands')
-rw-r--r-- | pkg/commands/os.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go index 1fb8e8da6..02d79a339 100644 --- a/pkg/commands/os.go +++ b/pkg/commands/os.go @@ -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) +} |