summaryrefslogtreecommitdiffstats
path: root/pkg/commands/os.go
diff options
context:
space:
mode:
authormjarkk <mkopenga@gmail.com>2018-10-27 17:06:33 +0200
committermjarkk <mkopenga@gmail.com>2018-10-27 17:06:33 +0200
commit18f09a14e65f360cce691559e328a459c8865aa5 (patch)
tree31a4651249dbe321867d024586e855ac0495b860 /pkg/commands/os.go
parented564adb4adcc39ac8da703c14604170af532f85 (diff)
Removed package github.com/mgutz/str for better code coverage
Diffstat (limited to 'pkg/commands/os.go')
-rw-r--r--pkg/commands/os.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go
index 88e4f52cd..28c01813b 100644
--- a/pkg/commands/os.go
+++ b/pkg/commands/os.go
@@ -9,7 +9,6 @@ import (
"github.com/jesseduffield/lazygit/pkg/config"
"github.com/jesseduffield/lazygit/pkg/utils"
- "github.com/mgutz/str"
"github.com/sirupsen/logrus"
gitconfig "github.com/tcnksm/go-gitconfig"
)
@@ -50,7 +49,7 @@ func NewOSCommand(log *logrus.Entry, config config.AppConfigurer) *OSCommand {
// RunCommandWithOutput wrapper around commands returning their output and error
func (c *OSCommand) RunCommandWithOutput(command string) (string, error) {
c.Log.WithField("command", command).Info("RunCommand")
- splitCmd := str.ToArgv(command)
+ splitCmd := ToArgv(command)
c.Log.Info(splitCmd)
return sanitisedCommandOutput(
c.command(splitCmd[0], splitCmd[1:]...).CombinedOutput(),