Skip to content

Commit f5dc854

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

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/arduino.cc/builder/ctags_runner.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,7 @@ func (s *CTagsRunner) Run(ctx *types.Context) error {
6161
return i18n.WrapError(err)
6262
}
6363

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

0 commit comments

Comments
 (0)