1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-17 00:18:05 +02:00

Removed package github.com/mgutz/str for better code coverage

This commit is contained in:
mjarkk
2018-10-27 17:06:33 +02:00
parent ed564adb4a
commit 18f09a14e6
7 changed files with 114 additions and 915 deletions

View File

@ -10,7 +10,6 @@ import (
"regexp"
"github.com/kr/pty"
"github.com/mgutz/str"
)
// RunCommandWithOutputLiveWrapper runs a command and return every word that gets written in stdout
@ -19,7 +18,7 @@ import (
// NOTE: If the return data is empty it won't written anything to stdin
// NOTE: You don't have to include a enter in the return data this function will do that for you
func RunCommandWithOutputLiveWrapper(c *OSCommand, command string, output func(string) string) error {
splitCmd := str.ToArgv(command)
splitCmd := ToArgv(command)
cmd := exec.Command(splitCmd[0], splitCmd[1:]...)
cmd.Env = os.Environ()