From 3d34c02bc6343bb46913ba5c951db5c785ce8f5c Mon Sep 17 00:00:00 2001 From: James Walker Date: Wed, 22 Apr 2020 21:19:12 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20send=20startup=20command=20outpu?= =?UTF-8?q?t=20straight=20to=20Stdout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tmux/project.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tmux/project.go b/tmux/project.go index b6d77db..cf21094 100644 --- a/tmux/project.go +++ b/tmux/project.go @@ -35,12 +35,13 @@ func StartProject(name string) { args := strings.Fields(command) cmd := exec.Command(args[0], args[1:]...) cmd.Dir = p.GetRoot() - output, err := cmd.CombinedOutput() + cmd.Stdout = os.Stdout + cmd.Stderr = os.Stderr + err := cmd.Run() if err != nil { - fmt.Println("Unable to run start command:", err, output) + fmt.Println("Unable to run start command:", err) os.Exit(1) } - fmt.Println(string(output)) } }