From bf0c271d2a93257c0410c94dfb269b61565d6167 Mon Sep 17 00:00:00 2001 From: David Haukeness Date: Tue, 29 Oct 2019 16:01:17 -0600 Subject: [PATCH] updated to use instead of --- cmdExec.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmdExec.go b/cmdExec.go index aec242d..ca3e099 100644 --- a/cmdExec.go +++ b/cmdExec.go @@ -4,7 +4,6 @@ package main import ( "fmt" - "os/exec" "strings" ) @@ -38,8 +37,7 @@ func cmdExec(cmd []string) { } func runKeybaseExec(args []string) { - cmd := exec.Command("keybase", args...) - output, err := cmd.CombinedOutput() + outputBytes, err := k.Exec(args...) if err != nil { printToView("Feed", fmt.Sprintf("Exec error: %+v", err)) } else { @@ -47,6 +45,7 @@ func runKeybaseExec(args []string) { // unjoin the chat clearView("Chat") setViewTitle("Input", fmt.Sprintf(" /exec %s ", strings.Join(args, " "))) + output := string(outputBytes) printToView("Chat", fmt.Sprintf("%s", output)) } }