summaryrefslogtreecommitdiffstats
path: root/pkg/tasks
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-09-29 19:10:57 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-09-29 20:48:49 +1000
commit1759ddf2470389d8de7ccedad24caf66c3cdb7d5 (patch)
tree728215e1a6a2e60580ac905b1709f67a38f1814c /pkg/tasks
parentf9643448a4ba186fb56d408a5ee8a21193986cd6 (diff)
move OS commands into their own package
Diffstat (limited to 'pkg/tasks')
-rw-r--r--pkg/tasks/tasks.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/tasks/tasks.go b/pkg/tasks/tasks.go
index 223d36c98..56fe81db0 100644
--- a/pkg/tasks/tasks.go
+++ b/pkg/tasks/tasks.go
@@ -9,7 +9,7 @@ import (
"sync"
"time"
- "github.com/jesseduffield/lazygit/pkg/commands"
+ "github.com/jesseduffield/lazygit/pkg/commands/oscommands"
"github.com/sirupsen/logrus"
)
@@ -50,7 +50,7 @@ func (m *ViewBufferManager) NewCmdTask(r io.Reader, cmd *exec.Cmd, linesToRead i
return func(stop chan struct{}) error {
go func() {
<-stop
- if err := commands.Kill(cmd); err != nil {
+ if err := oscommands.Kill(cmd); err != nil {
if !strings.Contains(err.Error(), "process already finished") {
m.Log.Errorf("error when running cmd task: %v", err)
}