From 13176dc64ea9059260a3fdc68a996b6e7a435647 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 16 Jun 2017 21:12:30 +0200 Subject: [PATCH] Use utils.ExecCommand for running ctags This slightly simplifies the code. Signed-off-by: Matthijs Kooijman --- src/arduino.cc/builder/ctags_runner.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/arduino.cc/builder/ctags_runner.go b/src/arduino.cc/builder/ctags_runner.go index 2ab75638..b9833082 100644 --- a/src/arduino.cc/builder/ctags_runner.go +++ b/src/arduino.cc/builder/ctags_runner.go @@ -30,8 +30,6 @@ package builder import ( - "fmt" - "arduino.cc/builder/constants" "arduino.cc/builder/ctags" "arduino.cc/builder/i18n" @@ -61,12 +59,7 @@ func (s *CTagsRunner) Run(ctx *types.Context) error { return i18n.WrapError(err) } - verbose := ctx.Verbose - if verbose { - fmt.Println(commandLine) - } - - sourceBytes, err := command.Output() + sourceBytes, _, err := utils.ExecCommand(ctx, command, /* stdout */ utils.Capture, /* stderr */ utils.Ignore) if err != nil { return i18n.WrapError(err) }