Skip to content

Commit 7f2d410

Browse files
Use utils.ExecCommand for running ctags
This slightly simplifies the code. Signed-off-by: Matthijs Kooijman <[email protected]>
1 parent 3e4d344 commit 7f2d410

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/arduino.cc/builder/ctags_runner.go

+1-8
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
package builder
3131

3232
import (
33-
"fmt"
34-
3533
"arduino.cc/builder/constants"
3634
"arduino.cc/builder/ctags"
3735
"arduino.cc/builder/i18n"
@@ -61,12 +59,7 @@ func (s *CTagsRunner) Run(ctx *types.Context) error {
6159
return i18n.WrapError(err)
6260
}
6361

64-
verbose := ctx.Verbose
65-
if verbose {
66-
fmt.Println(commandLine)
67-
}
68-
69-
sourceBytes, err := command.Output()
62+
sourceBytes, _, err := utils.ExecCommand(ctx, command, /* stdout */ utils.Capture, /* stderr */ utils.Ignore)
7063
if err != nil {
7164
return i18n.WrapError(err)
7265
}

0 commit comments

Comments
 (0)